diff --git a/src/netevent.c b/src/netevent.c index 10fc07d..241b473 100644 --- a/src/netevent.c +++ b/src/netevent.c @@ -218,7 +218,7 @@ int handle_net_write(struct user* user) if (ret == -2) break; - if (ret < 0) + if (ret <= 0) return quit_socket_error; }