forked from premiere/premiere-libtorrent
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:
commit
c5c590d256
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue