Moved 'allow_threading_guard guard' to the right place.

This commit is contained in:
Alden Torres 2015-07-12 11:05:06 -04:00
parent 73e5f795cb
commit 922c5e898e
1 changed files with 1 additions and 1 deletions

View File

@ -55,9 +55,9 @@ namespace
#ifndef TORRENT_DISABLE_DHT
void add_dht_node(lt::session& s, tuple n)
{
allow_threading_guard guard;
std::string ip = extract<std::string>(n[0]);
int port = extract<int>(n[1]);
allow_threading_guard guard;
s.add_dht_node(std::make_pair(ip, port));
}