aboutsummaryrefslogtreecommitdiff
path: root/src/network.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-18 01:48:18 -0400
committerDeterminant <[email protected]>2019-06-18 01:48:18 -0400
commitd91fc3e873d4bddd5cdd69fda7f67bd780a0ac55 (patch)
treea6c2e4c18c47b8dd595f2a115e5514ddd1ee7ab4 /src/network.cpp
parenta154cb399a6fcbd3d4fd19ab46aa2c107128d344 (diff)
fix bugs in the benchmark example; keep both send_msg APIs
Diffstat (limited to 'src/network.cpp')
-rw-r--r--src/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network.cpp b/src/network.cpp
index 938c105..b8d058a 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -46,7 +46,7 @@ void msgnetwork_config_queue_capacity(msgnetwork_config_t *self, size_t cap) {
void msgnetwork_send_msg_by_move(msgnetwork_t *self,
msg_t *_moved_msg, const msgnetwork_conn_t *conn) {
- self->_send_msg(std::move(*_moved_msg), *conn);
+ self->_send_msg_deferred(std::move(*_moved_msg), *conn);
//delete _moved_msg;
}
@@ -213,7 +213,7 @@ void peernetwork_conn_free(const peernetwork_conn_t *self) { delete self; }
void peernetwork_send_msg_by_move(peernetwork_t *self,
msg_t * _moved_msg, const netaddr_t *paddr) {
- self->_send_msg(std::move(*_moved_msg), *paddr);
+ self->_send_msg_deferred(std::move(*_moved_msg), *paddr);
//delete _moved_msg;
}