From adeaf23f9c1dd3ac3902d475d2704f7822cde368 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Sun, 19 Jul 2009 14:45:15 +0200 Subject: [PATCH] Kept spinning in send() --- src/netevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }