Merge pull request 'Prevent Deadlock when Logging Protocol Engine Stopped' (#406) from p2p-interim-new-storage into master
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/push Build is pending
Details
Reviewed-on: #406
This commit is contained in:
commit
7f40ea2b51
|
@ -916,7 +916,8 @@ func (cp *cwtchPeer) eventHandler() {
|
|||
case event.ProtocolEngineStopped:
|
||||
cp.mutex.Lock()
|
||||
cp.listenStatus = false
|
||||
log.Infof("Protocol engine for %v has stopped listening", cp.GetOnion())
|
||||
onion, _ := cp.storage.LoadProfileKeyValue(TypeAttribute, attr.PublicScope.ConstructScopedZonedPath(attr.ProfileZone.ConstructZonedPath(constants.Onion)).ToString())
|
||||
log.Infof("Protocol engine for %s has stopped listening", onion)
|
||||
cp.mutex.Unlock()
|
||||
case event.EncryptedGroupMessage:
|
||||
|
||||
|
|
Loading…
Reference in New Issue