From 53f776997d0e92650b9f3a16224cef1c0c76b716 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 1 Jul 2019 23:35:17 -0400 Subject: add async id for error handling --- test/test_msgnet_tls.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_msgnet_tls.cpp') diff --git a/test/test_msgnet_tls.cpp b/test/test_msgnet_tls.cpp index a779ba5..07fe6ac 100644 --- a/test/test_msgnet_tls.cpp +++ b/test/test_msgnet_tls.cpp @@ -121,7 +121,7 @@ struct MyNet: public MsgNetworkByteOp { { printf("[%s] disconnected, retrying.\n", this->name.c_str()); /* try to reconnect to the same address */ - connect(conn->get_addr(), false); + connect(conn->get_addr()); } return res; }); @@ -161,8 +161,8 @@ int main() { bob.listen(bob_addr); /* try to connect once */ - alice.connect(bob_addr, false); - bob.connect(alice_addr, false); + alice.connect(bob_addr); + bob.connect(alice_addr); /* the main loop can be shutdown by ctrl-c or kill */ auto shutdown = [&](int) {ec.stop();}; -- cgit v1.2.3