aboutsummaryrefslogtreecommitdiffstats
path: root/net.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2014-12-20 05:14:11 +0800
committersubtly <subtly@users.noreply.github.com>2014-12-20 05:14:11 +0800
commit4588bfba6655698396cf067d251a849ad4dfd7c1 (patch)
treedd5c092059e01a6e5ae7513337e27ccf0cee7412 /net.cpp
parented9a5e572a8254f1595154e302f51dd242673272 (diff)
downloaddexon-solidity-4588bfba6655698396cf067d251a849ad4dfd7c1.tar.gz
dexon-solidity-4588bfba6655698396cf067d251a849ad4dfd7c1.tar.zst
dexon-solidity-4588bfba6655698396cf067d251a849ad4dfd7c1.zip
initialize atomics so udp messages are delivered on linux #656
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.cpp b/net.cpp
index 1e8d20c5..34b20ccc 100644
--- a/net.cpp
+++ b/net.cpp
@@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(test_txrx_one)
d.to = boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string("127.0.0.1"), 30300);
d.data = bytes({65,65,65,65});
- TestA a; a.start(); a.m_socket->connect();
+ TestA a; a.m_socket->connect(); a.start();
a.m_socket->send(d);
sleep(1);
BOOST_REQUIRE_EQUAL(true, a.success);