summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index d5ae36a..bfd3802 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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);