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

@ -146,6 +146,8 @@ void terminate_connection(connection_t *c, bool report) {
if(c->outgoing) {
do_outgoing_connection(c);
} else {
connection_del(c);
}
}