diff options
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) { |