diff --git a/source/mijin/net/socket.hpp b/source/mijin/net/socket.hpp index 45bb315..2f8a87e 100644 --- a/source/mijin/net/socket.hpp +++ b/source/mijin/net/socket.hpp @@ -105,7 +105,7 @@ public: return StreamError::UNKNOWN_ERROR; } void close() MIJIN_NOEXCEPT; - [[nodiscard]] bool isListening() const MIJIN_NOEXCEPT { return handle_ >= 0; } + [[nodiscard]] bool isListening() const MIJIN_NOEXCEPT { return handle_ != INVALID_SOCKET_HANDLE; } Task>> c_waitForConnection() MIJIN_NOEXCEPT; };