diff options
author | Determinant <[email protected]> | 2018-11-12 15:52:38 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2018-11-12 15:52:38 -0500 |
commit | 7387f7f6b615717dd863bcb62ee7f65ace29879b (patch) | |
tree | 19dfd53b8da5a01858e14fd43184683270deec15 /test/test_network.cpp | |
parent | dd09443b0b3c0b5d1a8c034644d1065dd25bf5a9 (diff) |
update PeerNetwork to work with multiloops
Diffstat (limited to 'test/test_network.cpp')
-rw-r--r-- | test/test_network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_network.cpp b/test/test_network.cpp index c4fe2e2..1821ada 100644 --- a/test/test_network.cpp +++ b/test/test_network.cpp @@ -89,8 +89,8 @@ struct MyNet: public MsgNetworkByteOp { reg_handler(salticidae::generic_bind( &MyNet::on_receive_hello, this, _1, _2)); - reg_conn_handler([this](ConnPool::Conn &conn) { - if (conn.get_fd() != -1) + reg_conn_handler([this](ConnPool::Conn &conn, bool connected) { + if (connected) { if (conn.get_mode() == ConnPool::Conn::ACTIVE) { |