From c78bb143030162f0c820f08c87808e157c014a07 Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sun, 22 Apr 2012 02:55:06 +0200 Subject: [PATCH] terminate_connection(): delete non-outgoing (aka incoming) connections. --- src/net.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/net.c b/src/net.c index 58db16e2..295546df 100644 --- a/src/net.c +++ b/src/net.c @@ -145,8 +145,10 @@ void terminate_connection(connection_t *c, bool report) { /* Check if this was our outgoing connection */ if(c->outgoing) { - do_outgoing_connection(c); - } + do_outgoing_connection(c); + } else { + connection_del(c); + } } /* -- 2.20.1