summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-23 14:47:41 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-23 14:47:41 +0100
commit70c67b4f762e111ce4f91660898544b601adf1ac (patch)
tree8cc6ff126c397b250b4a2de77e255b3a7fc0a9b0
parent1fb3be8977e2300fd0ba30d6593bcb806e66cb9a (diff)
Hack around probles when destroying the Server object.
-rw-r--r--test/test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc
index 6d5efa455..2a99c862f 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -287,9 +287,9 @@ BOOST_AUTO_TEST_CASE (client_server_test)
shared_ptr<EncodedData> locally_encoded = frame.encode_locally ();
Config::instance()->set_server_port (61920);
- Server server (&log);
+ Server* server = new Server (&log);
- new thread (boost::bind (&Server::run, &server, 1));
+ new thread (boost::bind (&Server::run, server, 1));
ServerDescription description ("localhost", 1);
shared_ptr<EncodedData> remotely_encoded = frame.encode_remotely (&description);