aboutsummaryrefslogtreecommitdiff
path: root/test_msgnet
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-17 01:50:29 -0400
committerDeterminant <[email protected]>2019-06-17 01:50:29 -0400
commit8ac5ed4cf4518053c81122c01cd4a665aca0a549 (patch)
tree08fb7f4d07289d0e73dc602f909f2927994c152d /test_msgnet
parent3ba5b6536e730baf01efb3203be280c3e61319bd (diff)
clean up code
Diffstat (limited to 'test_msgnet')
-rw-r--r--test_msgnet/main.go5
1 files changed, 3 insertions, 2 deletions
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()
}