We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5d2bc commit b56cbd8Copy full SHA for b56cbd8
graphql/subscription.go
@@ -2,7 +2,6 @@ package graphql
2
3
import (
4
"fmt"
5
- "reflect"
6
"sync"
7
)
8
@@ -37,13 +36,8 @@ func (s *subscriptionMap) Unsubscribe(subscriptionID string) error {
37
36
if !success {
38
return fmt.Errorf("tried to unsubscribe from unknown subscription with ID '%s'", subscriptionID)
39
}
40
- hasBeenUnsubscribed := unsub.hasBeenUnsubscribed
41
unsub.hasBeenUnsubscribed = true
42
s.map_[subscriptionID] = unsub
43
-
44
- if !hasBeenUnsubscribed {
45
- reflect.ValueOf(s.map_[subscriptionID].interfaceChan).Close()
46
- }
47
return nil
48
49
0 commit comments