Merge pull request #109 from aldenml/remove-double-call-extract_node_id

Removed unnecessary call to node_id copy constructor.
This commit is contained in:
Arvid Norberg 2015-08-23 00:17:49 +02:00
commit c5c590d256
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace libtorrent { namespace dht
entry const* nid = e->find_key("node-id");
if (nid == 0 || nid->type() != entry::string_t || nid->string().length() != 20)
return (node_id::min)();
return node_id(node_id(nid->string().c_str()));
return node_id(nid->string().c_str());
}
} // anonymous namespace