Skip to content

Commit

Permalink
Fix service send()
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Jun 21, 2024
1 parent 9ce7539 commit f7b764d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace libnetwrk {

public:
void send(std::shared_ptr<connection_t> client, message_t& message, libnetwrk::send_flags flags) {
if (!client || client->is_connected()) return;
if (!client || !client->is_connected()) return;

client->send(message, flags);
}
Expand Down

0 comments on commit f7b764d

Please sign in to comment.