aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-29 14:13:59 -0400
committerDeterminant <[email protected]>2019-06-29 14:13:59 -0400
commit54f5abf3d4dac9cdf04846d5b952799c31753c9d (patch)
tree77c4c004a5d72fc59e8a2a433aef086893a51c0a /test
parent8d242e0112c7f9072600a48366ebbd6ce7b5c727 (diff)
...
Diffstat (limited to 'test')
-rw-r--r--test/bench_network.cpp2
-rw-r--r--test/bench_network_tls.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/bench_network.cpp b/test/bench_network.cpp
index 64e53c2..ed2642a 100644
--- a/test/bench_network.cpp
+++ b/test/bench_network.cpp
@@ -106,7 +106,7 @@ struct MyNet: public MsgNetworkByteOp {
/* send the first message through this connection */
trigger = [this, conn](ThreadCall::Handle &) {
send_msg(MsgBytes(256), salticidae::static_pointer_cast<Conn>(conn));
- if (conn->get_mode() != MyNet::Conn::DEAD)
+ if (!conn->is_terminated())
tcall.async_call(trigger);
};
tcall.async_call(trigger);
diff --git a/test/bench_network_tls.cpp b/test/bench_network_tls.cpp
index cb466ad..89e39a8 100644
--- a/test/bench_network_tls.cpp
+++ b/test/bench_network_tls.cpp
@@ -110,7 +110,7 @@ struct MyNet: public MsgNetworkByteOp {
/* send the first message through this connection */
trigger = [this, conn](ThreadCall::Handle &) {
send_msg(MsgBytes(256), salticidae::static_pointer_cast<Conn>(conn));
- if (conn->get_mode() != MyNet::Conn::DEAD)
+ if (!conn->is_terminated())
tcall.async_call(trigger);
};
tcall.async_call(trigger);