From 124dbfb6ad30d7317372a0e56e14675b4fba32b7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 2 Sep 2013 05:29:45 +0000 Subject: [PATCH] fix test_tracker again (synchronous session destruction is required) --- test/test_tracker.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/test_tracker.cpp b/test/test_tracker.cpp index efe5d6041..051cfc4d0 100644 --- a/test/test_tracker.cpp +++ b/test/test_tracker.cpp @@ -52,9 +52,6 @@ int test_main() & ~alert::progress_notification & ~alert::stats_notification; - session_proxy p1; - session_proxy p2; - session* s = new libtorrent::session(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48875, 49800), "0.0.0.0", 0, alert_mask); session_settings sett; @@ -95,7 +92,6 @@ int test_main() TEST_EQUAL(g_udp_tracker_requests, prev_udp_announces + 1); TEST_EQUAL(g_http_tracker_requests, prev_http_announces + 1); - p1 = s->abort(); fprintf(stderr, "destructing session\n"); delete s; fprintf(stderr, "done\n"); @@ -161,7 +157,6 @@ int test_main() TEST_EQUAL(g_udp_tracker_requests, prev_udp_announces + 1); TEST_EQUAL(g_http_tracker_requests, prev_http_announces); - p2 = s->abort(); fprintf(stderr, "destructing session\n"); delete s; fprintf(stderr, "done\n");