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()
|
cp.mutex.Lock()
|
||||||
group := cp.Profile.GetGroup(groupid)
|
group := cp.Profile.GetGroup(groupid)
|
||||||
if group == nil {
|
if group == nil {
|
||||||
|
cp.mutex.Unlock()
|
||||||
return errors.New("invalid group id")
|
return errors.New("invalid group id")
|
||||||
}
|
}
|
||||||
invite, err := group.Invite()
|
invite, err := group.Invite()
|
||||||
|
|
Loading…
Reference in New Issue