lib/protocol, rc, utils: Add mutex Unlock before panic (#6556)

This commit is contained in:
Boqin Qin
2020-04-20 14:52:16 +02:00
committed by GitHub
parent 0e5ba3ca05
commit c63ca4f563
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -289,6 +289,7 @@ func (c *rawConnection) Request(ctx context.Context, folder string, name string,
c.awaitingMut.Lock()
if _, ok := c.awaiting[id]; ok {
c.awaitingMut.Unlock()
panic("id taken")
}
rc := make(chan asyncResult, 1)