Skip to content

Commit 29893b1

Browse files
authored
gpio(core): fix sporadic hang on finish for discrete edge polling (hybridgroup#1107)
1 parent 9dfcfc5 commit 29893b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/digitalpin_poll.go

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func startEdgePolling(
4545
for {
4646
select {
4747
case <-quitChan:
48+
if !firstLoopDone {
49+
wg.Done()
50+
}
4851
return
4952
default:
5053
// note: pure reading takes between 30us and 1ms on rasperry Pi1, typically 50us, with sysfs also 500us

0 commit comments

Comments
 (0)