aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-23 19:55:10 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-23 19:55:10 +0200
commit4b02030c800d98eb87edc7ac8aefdfdafbd532b8 (patch)
tree8aebc3ab174d0b3dddb7bfa8234ebb7201eb1575
parent3ed519c1c59b99e7a886f27e782f7daf70f30b7b (diff)
downloadxK-4b02030c800d98eb87edc7ac8aefdfdafbd532b8.tar.gz
xK-4b02030c800d98eb87edc7ac8aefdfdafbd532b8.tar.xz
xK-4b02030c800d98eb87edc7ac8aefdfdafbd532b8.zip
kike: mark an issue with FIXME
-rw-r--r--kike.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index 7bbfef4..a2820ee 100644
--- a/kike.c
+++ b/kike.c
@@ -601,6 +601,10 @@ server_context_free (struct server_context *self)
for (link = self->clients; link; link = tmp)
{
tmp = link->next;
+ // FIXME: either make sure this isn't called (which it can as of now,
+ // see on_irc_quit_timeout) or fix client_free() to unregister from
+ // the poller before closing the socket (we could also just
+ // set .closed = true).
client_free (link);
free (link);
}