aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-07-02 19:17:39 -0400
committerDeterminant <[email protected]>2019-07-02 19:17:39 -0400
commitb7e06f0f00710765113bbc560fcbaf39e466cbce (patch)
tree51b96d296b7e1dbdd8204d2516e16c762dc93450 /include
parent71c0b2f03d7a68b6a869ec255fda3c48bd98d878 (diff)
...
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/salticidae/network.h b/include/salticidae/network.h
index 98fcd2a..4fc575c 100644
--- a/include/salticidae/network.h
+++ b/include/salticidae/network.h
@@ -763,6 +763,10 @@ void PeerNetwork<O, _, __>::check_handshake(PeerConn *p) {
else
this->disp_terminate(old_conn);
}
+ else
+ this->user_tcall->async_call([this, conn](ThreadCall::Handle &) {
+ if (peer_cb) peer_cb(conn, true);
+ });
}
pending_peers.erase(p->conn->get_addr());
auto color_begin = "";