mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Comment out useless TODO'd if block.
The condition is a potential use after free, because `connection_kill` before it will delete the `conn` that is dereferenced.
This commit is contained in:
parent
a3f9893e89
commit
eb8a3e7a7c
|
@ -2669,12 +2669,15 @@ static void kill_timedout(Net_Crypto *c)
|
|||
continue;
|
||||
|
||||
connection_kill(c, i);
|
||||
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
if (conn->status == CRYPTO_CONN_ESTABLISHED) {
|
||||
//TODO: add a timeout here?
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user