about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-31 23:43:17 -0400
committerJune McEnroe <june@causal.agency>2017-07-31 23:43:17 -0400
commit7e978b57cc75e9802242937253df8b27babb4c6f (patch)
tree65dbb2964726ce3b6950818844fc0ec7ef43542d
parentBuild with debug info (diff)
downloadtorus-7e978b57cc75e9802242937253df8b27babb4c6f.tar.gz
torus-7e978b57cc75e9802242937253df8b27babb4c6f.zip
Fix removing clients from clientCast
Diffstat (limited to '')
-rwxr-xr-xserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 9724359..5aaf855 100755
--- a/server.c
+++ b/server.c
@@ -109,8 +109,9 @@ static void clientCast(const struct Client *origin, const struct ServerMessage *
         if (client->tileY != origin->tileY) continue;
 
         if (!clientSend(client, msg)) {
+            struct Client *dead = client;
             client = client->next;
-            clientRemove(client);
+            clientRemove(dead);
             if (!client) break;
         }
     }
sh/libedit/Makefile?id=85ff6ddcda49935061e1c9be591aa99e5541baee&follow=1'>Enable warnings in libeditJune McEnroe 2019-01-13Show full path in RPS1June McEnroe 2019-01-13Shorten $HOME to ~ in prompt expansionJune McEnroe 2019-01-13Document PSlitJune McEnroe 2019-01-13Document PS0June McEnroe 2019-01-13Set PS0 in cashJune McEnroe 2019-01-13Add PS0June McEnroe 2019-01-13Change default ENV from cashrc to env.shJune McEnroe 2019-01-13Use colours in cash promptsJune McEnroe 2019-01-12Set PSlit like NetBSD shJune McEnroe 2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe 2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe 2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe