Skip to content

Commit 8006c33

Browse files
committed
Fixed deadlock... ooops
1 parent fdff483 commit 8006c33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dummy-discovery/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func (d *DummyDiscovery) Start() error {
6262
}
6363

6464
func (d *DummyDiscovery) Stop() error {
65-
d.closeChan <- true
65+
if d.closeChan != nil {
66+
d.closeChan <- true
67+
d.closeChan = nil
68+
}
6669
return nil
6770
}
6871

0 commit comments

Comments
 (0)