diff --git a/src/close_reason.cpp b/src/close_reason.cpp index a632ae3d7..c7e66756a 100644 --- a/src/close_reason.cpp +++ b/src/close_reason.cpp @@ -138,7 +138,7 @@ namespace libtorrent return close_no_reason; } } - else if (ec.category() == boost::system::system_category()) + else if (ec.category() == generic_category()) { switch (ec.value()) {