From 8ac5ed4cf4518053c81122c01cd4a665aca0a549 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 17 Jun 2019 01:50:29 -0400 Subject: clean up code --- test_msgnet/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test_msgnet/main.go') diff --git a/test_msgnet/main.go b/test_msgnet/main.go index fd561f7..c2ae70d 100644 --- a/test_msgnet/main.go +++ b/test_msgnet/main.go @@ -114,9 +114,8 @@ func connHandler(_conn *C.struct_msgnetwork_conn_t, connected C.bool, _ unsafe.P } } else { fmt.Printf("[%s] Disconnected, retrying.\n", name) - addr := conn.GetAddr() err := salticidae.NewError() - net.Connect(addr, &err) + net.Connect(conn.GetAddr(), &err) } } @@ -170,4 +169,6 @@ func main() { ev_term.Add(salticidae.SIGTERM) ec.Dispatch() + alice.net.Stop() + bob.net.Stop() } -- cgit v1.2.3-70-g09d2