From 4588bfba6655698396cf067d251a849ad4dfd7c1 Mon Sep 17 00:00:00 2001 From: subtly Date: Fri, 19 Dec 2014 22:14:11 +0100 Subject: [PATCH] initialize atomics so udp messages are delivered on linux #656 --- net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.cpp b/net.cpp index 1e8d20c54..34b20ccc7 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);