terminate_connection(): only kill c->node->connection if it is pointing
to the same connection
This commit is contained in:
parent
a96c4f016c
commit
7a6ca7a993
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ void terminate_connection(connection_t *c, bool report) {
|
||||||
|
|
||||||
c->status.active = false;
|
c->status.active = false;
|
||||||
|
|
||||||
if(c->node)
|
if(c->node && c->node->connection == c)
|
||||||
c->node->connection = NULL;
|
c->node->connection = NULL;
|
||||||
|
|
||||||
if(c->edge) {
|
if(c->edge) {
|
||||||
|
|
Loading…
Reference in a new issue