mirror of https://github.com/oxen-io/lokinet
Fix a deadlock when link fails to establish
This commit is contained in:
parent
3d2dfcc027
commit
be211926cf
|
@ -192,7 +192,7 @@ namespace llarp
|
|||
const RouterContact &rc)
|
||||
{
|
||||
{
|
||||
util::Lock l(&_mutex);
|
||||
util::ReleasableLock l(&_mutex);
|
||||
|
||||
// in case other request found RC for this router after this request was
|
||||
// made
|
||||
|
@ -206,6 +206,7 @@ namespace llarp
|
|||
|
||||
if(!link)
|
||||
{
|
||||
l.Release();
|
||||
FinalizeRequest(router, SessionResult::NoLink);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue