fix python deadlock when using python extensions

This commit is contained in:
Arvid Norberg
2011-11-29 11:12:11 +00:00
parent cc6bc5ba17
commit 3515199eb5
2 changed files with 3 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ namespace {
std::list<std::string> string_storage;
dict_to_add_torrent_params(params, p, resume_buf, string_storage);
allow_threading_guard guard;
#ifndef BOOST_NO_EXCEPTIONS
return add_magnet_uri(s, uri, p);
#else