terminate_connection(): delete non-outgoing (aka incoming) connections.
This commit is contained in:
parent
8b9e5af0d9
commit
c78bb14303
1 changed files with 4 additions and 2 deletions
|
@ -145,8 +145,10 @@ void terminate_connection(connection_t *c, bool report) {
|
||||||
/* Check if this was our outgoing connection */
|
/* Check if this was our outgoing connection */
|
||||||
|
|
||||||
if(c->outgoing) {
|
if(c->outgoing) {
|
||||||
do_outgoing_connection(c);
|
do_outgoing_connection(c);
|
||||||
}
|
} else {
|
||||||
|
connection_del(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue