diff --git a/include/libnetwrk/net/core/service/service_comp_message.hpp b/include/libnetwrk/net/core/service/service_comp_message.hpp index fe0f46a..e050be0 100644 --- a/include/libnetwrk/net/core/service/service_comp_message.hpp +++ b/include/libnetwrk/net/core/service/service_comp_message.hpp @@ -26,7 +26,7 @@ namespace libnetwrk { public: void send(std::shared_ptr client, message_t& message, libnetwrk::send_flags flags) { - if (!client || client->is_connected()) return; + if (!client || !client->is_connected()) return; client->send(message, flags); }