File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ type promiseState struct {
58
58
// in the pending state.
59
59
clients map [clientPath ]* clientAndPromise
60
60
61
- // releasedClients is true after ReleaseClients has been called on this
62
- // promise. Only the receiver of ReleaseClients should set this to true.
63
- releasedClients bool
64
-
65
61
// result and err are the values from Fulfill or Reject respectively
66
62
// in the resolved state.
67
63
result Ptr
@@ -222,10 +218,6 @@ func (p *Promise) Answer() *Answer {
222
218
func (p * Promise ) ReleaseClients () {
223
219
<- p .resolved
224
220
clients := mutex .With1 (& p .state , func (p * promiseState ) map [clientPath ]* clientAndPromise {
225
- if p .releasedClients {
226
- return nil
227
- }
228
- p .releasedClients = true // must happen before traversing pointers
229
221
clients := p .clients
230
222
p .clients = nil
231
223
return clients
You can’t perform that action at this time.
0 commit comments