degesch: flush I/O buffers on disconnect
Discovered thanks to weercd.
This commit is contained in:
parent
4471e0c6cd
commit
ef2b4d9a01
@ -3428,6 +3428,9 @@ irc_disconnect (struct server *s)
|
|||||||
s->socket_event.closed = true;
|
s->socket_event.closed = true;
|
||||||
poller_fd_reset (&s->socket_event);
|
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
|
// All of our timers have lost their meaning now
|
||||||
irc_cancel_timers (s);
|
irc_cancel_timers (s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user