diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-30 17:24:42 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-03-31 20:29:41 +0000 |
commit | 21fe6a289b934bd96bf83d5d23ece14ec850df27 (patch) | |
tree | 79d5407aa6b29fce958fdebe05bd10f5c7047ab6 /src/ringct | |
parent | Merge pull request #6336 (diff) | |
download | monero-21fe6a289b934bd96bf83d5d23ece14ec850df27.tar.xz |
p2p: fix frequent weak_ptr exception on connection
When a handshake fails, it can fail due to timeout or destroyed
connection, in which case the connection will be, or already is,
closed, and we don't want to do it twice.
Additionally, when closing a connection directly from the top
level code, ensure the connection is gone from the m_connects
list so it won't be used again.
AFAICT this is now clean in netstat, /proc/PID/fd and print_cn.
This fixes a noisy (but harmless) exception.
Diffstat (limited to 'src/ringct')
0 files changed, 0 insertions, 0 deletions