close log file on exit in client_test

This commit is contained in:
Arvid Norberg 2011-02-20 22:49:55 +00:00
parent 261e2e2726
commit 3cf551ef80
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,6 @@ int main(int argc, char* argv[])
" incoming TCP connections)\n"
" -q <num loops> automatically quit the client after <num loops> 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;