Commit 8e34fe9
authored
Fix deadlock in p2pclient/unary_handlers.go (#9)
In case of `!ok` and the following `return`, `c.mhandlers` won't be released, and this will lead to a deadlock.
One solution is to use `defer c.mhandlers.Unlock()`, however `c.mhandlers` does not seem to be useful here at all.1 parent a84b0a7 commit 8e34fe9
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
0 commit comments