degesch: flush I/O buffers on disconnect

Discovered thanks to weercd.
This commit is contained in:
Přemysl Eric Janouch 2015-07-04 16:37:31 +02:00
parent 4471e0c6cd
commit ef2b4d9a01

View File

@ -3428,6 +3428,9 @@ irc_disconnect (struct server *s)
s->socket_event.closed = true;
poller_fd_reset (&s->socket_event);
str_reset (&s->read_buffer);
str_reset (&s->write_buffer);
// All of our timers have lost their meaning now
irc_cancel_timers (s);