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_c.c | |
parent | 85b9affbce70ac4b5922158802b227a42c42a203 (diff) |
add async id for error handling
Diffstat (limited to 'test/test_msgnet_c.c')
-rw-r--r-- | test/test_msgnet_c.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_msgnet_c.c b/test/test_msgnet_c.c index 1417d2b..2ee9443 100644 --- a/test/test_msgnet_c.c +++ b/test/test_msgnet_c.c @@ -139,7 +139,7 @@ bool conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata) printf("[%s] Disconnected, retrying.\n", name); /* try to reconnect to the same address */ const netaddr_t *addr = msgnetwork_conn_get_addr(conn); - msgnetwork_connect(net, addr, false, &err); check_err(&err); + msgnetwork_connect(net, addr); } return true; } @@ -194,8 +194,8 @@ int main() { msgnetwork_listen(bob.net, bob_addr, &err); check_err(&err); /* try to connect once */ - msgnetwork_conn_free(msgnetwork_connect(alice.net, bob_addr, false, &err)); check_err(&err); - msgnetwork_conn_free(msgnetwork_connect(bob.net, alice_addr, false, &err)); check_err(&err); + msgnetwork_connect(alice.net, bob_addr); + msgnetwork_connect(bob.net, alice_addr); netaddr_free(alice_addr); netaddr_free(bob_addr); |