Skip to content

Commit 5c0140f

Browse files
committed
Linux: Fix erroneous signal for port add
1 parent 8eaaa26 commit 5c0140f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sync_linux.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ func startSync() (chan<- bool, error) {
7777
continue
7878
}
7979
for _, port := range portList {
80-
if !port.IsUSB || port.Name != changedPort {
80+
if port.IsUSB && port.Name == changedPort {
81+
outputSyncMessage(&syncOutputJSON{
82+
EventType: "add",
83+
Port: newBoardPortJSON(port),
84+
})
85+
break
8186
}
82-
outputSyncMessage(&syncOutputJSON{
83-
EventType: "add",
84-
Port: newBoardPortJSON(port),
85-
})
86-
break
8787
}
8888
}
8989
if evt.Action == "remove" {

0 commit comments

Comments
 (0)