about summary refs log tree commit diff
path: root/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'loop.c')
-rw-r--r--loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loop.c b/loop.c
index cfba4b6..fdb2e66 100644
--- a/loop.c
+++ b/loop.c
@@ -126,7 +126,7 @@ loop:
 		writef(peers[i].fd, "ERROR :Closing Link: %s", peers[i].host);
 		close(peers[i].fd);
 		user_remove(i);
-		i = 0;
+		--i;
 	}
 	goto loop;
 }