diff --git a/derby/derby.go b/derby/derby.go index f753d9e..80318f6 100644 --- a/derby/derby.go +++ b/derby/derby.go @@ -213,7 +213,7 @@ func (dc *DerbyClock) readLoop() { } else if b[0] == '\n' { // Check if we should consider the race complete dc.mu.Lock() - if dc.status == StatusRunning && results != nil { + if dc.status == StatusRunning && len(results) > 0 { dc.status = StatusFinished dc.mu.Unlock()