terminate_connection(): delete non-outgoing (aka incoming) connections.

This commit is contained in:
Sven-Haegar Koch 2012-04-22 02:55:06 +02:00 committed by Guus Sliepen
parent 8b9e5af0d9
commit c78bb14303

View file

@ -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);
}
}
/*