Skip to content

Commit 9539402

Browse files
silvanocerzaumbynos
authored andcommitted
Fix panic when discovery doesn't send an ok message after a command (arduino#1569)
1 parent 553c637 commit 9539402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino/discovery/discovery.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func (disc *PluggableDiscovery) jsonDecodeLoop(in io.Reader, outChan chan<- *dis
162162
// This is fine, we exit gracefully
163163
disc.statusMutex.Lock()
164164
disc.state = Dead
165+
disc.incomingMessagesError = err
165166
disc.statusMutex.Unlock()
166167
close(outChan)
167168
return

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy