From 3cf551ef80524460ad535e803992eec72f8d478d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 20 Feb 2011 22:49:55 +0000 Subject: [PATCH] close log file on exit in client_test --- examples/client_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 86acce9cd..3233dd9fe 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -918,7 +918,6 @@ int main(int argc, char* argv[]) " incoming TCP connections)\n" " -q automatically quit the client after of refreshes\n" " this is useful for scripting tests\n" - " " "\n\n" "TORRENT is a path to a .torrent file\n" "MAGNETURL is a magnet link\n" @@ -1983,6 +1982,7 @@ int main(int argc, char* argv[]) bencode(std::back_inserter(out), *rd->resume_data); save_file(combine_path(h.save_path(), ".resume/" + h.name() + ".resume"), out); } + if (g_log_file) fclose(g_log_file); printf("\nsaving session state\n"); { entry session_state;