diff options
author | Determinant <[email protected]> | 2019-07-01 23:35:17 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-07-01 23:35:17 -0400 |
commit | 53f776997d0e92650b9f3a16224cef1c0c76b716 (patch) | |
tree | de7c0a20dd4ba1d4bc5ea229e723ab8608ed94af /test/test_msgnet.cpp | |
parent | 85b9affbce70ac4b5922158802b227a42c42a203 (diff) |
add async id for error handling
Diffstat (limited to 'test/test_msgnet.cpp')
-rw-r--r-- | test/test_msgnet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_msgnet.cpp b/test/test_msgnet.cpp index 50e35dc..9b52f85 100644 --- a/test/test_msgnet.cpp +++ b/test/test_msgnet.cpp @@ -108,7 +108,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 true; }); @@ -148,8 +148,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();}; |