Commit 95394026 authored by Silvano Cerza's avatar Silvano Cerza Committed by Umberto Baldi

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

parent 553c6375
......@@ -162,6 +162,7 @@ func (disc *PluggableDiscovery) jsonDecodeLoop(in io.Reader, outChan chan<- *dis
// This is fine, we exit gracefully
disc.statusMutex.Lock()
disc.state = Dead
disc.incomingMessagesError = err
disc.statusMutex.Unlock()
close(outChan)
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