diff --git a/include/libtorrent/debug.hpp b/include/libtorrent/debug.hpp index 96c2e749a..5acb343d6 100644 --- a/include/libtorrent/debug.hpp +++ b/include/libtorrent/debug.hpp @@ -146,6 +146,7 @@ namespace libtorrent { mutex::scoped_lock l(file_mutex); log_file.close(); + open_filename.clear(); } logger(std::string const& logpath, std::string const& filename