forked from cwtch.im/cwtch
Fix Mutex
This commit is contained in:
parent
eec933c197
commit
fce22d48a2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue