Unverified Commit df27d56a authored by Silvano Cerza's avatar Silvano Cerza Committed by GitHub

Fix panic when discovery doesn't send an ok message after a command (#1569)

parent dbdca99a
...@@ -162,6 +162,7 @@ func (disc *PluggableDiscovery) jsonDecodeLoop(in io.Reader, outChan chan<- *dis ...@@ -162,6 +162,7 @@ func (disc *PluggableDiscovery) jsonDecodeLoop(in io.Reader, outChan chan<- *dis
// This is fine, we exit gracefully // This is fine, we exit gracefully
disc.statusMutex.Lock() disc.statusMutex.Lock()
disc.state = Dead disc.state = Dead
disc.incomingMessagesError = err
disc.statusMutex.Unlock() disc.statusMutex.Unlock()
close(outChan) close(outChan)
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment