diff options
Diffstat (limited to 'device')
-rw-r--r-- | device/noise-protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/noise-protocol.go b/device/noise-protocol.go index 0212b7d..e31ceda 100644 --- a/device/noise-protocol.go +++ b/device/noise-protocol.go @@ -282,7 +282,7 @@ func (device *Device) ConsumeMessageInitiation(msg *MessageInitiation) *Peer { // lookup peer peer := device.LookupPeer(peerPK) - if peer == nil { + if peer == nil || !peer.isRunning.Get() { return nil } |