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 1773b1a commit bf9e6e9Copy full SHA for bf9e6e9
1 file changed
internal/core/local_runtime/instance.go
@@ -71,9 +71,9 @@ func newPluginInstance(
71
errReader: errReader,
72
l: &sync.Mutex{},
73
appConfig: appConfig,
74
-
75
- notifiers: []PluginInstanceNotifier{},
76
- notifierLock: &sync.Mutex{},
+ listener: make(map[string]func([]byte)),
+ notifiers: []PluginInstanceNotifier{},
+ notifierLock: &sync.Mutex{},
77
}
78
79
return instance
@@ -82,9 +82,6 @@ func newPluginInstance(
82
func (s *PluginInstance) setupStdioEventListener(session_id string, listener func([]byte)) {
83
s.l.Lock()
84
defer s.l.Unlock()
85
- if s.listener == nil {
86
- s.listener = map[string]func([]byte){}
87
- }
88
89
s.listener[session_id] = listener
90
0 commit comments