diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index 9f67d1b..c4002a3 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -433,6 +433,7 @@ func (cp *cwtchPeer) InviteOnionToGroup(onion string, groupid string) error { cp.mutex.Lock() group := cp.Profile.GetGroup(groupid) if group == nil { + cp.mutex.Unlock() return errors.New("invalid group id") } invite, err := group.Invite()