Skip to content

Commit ec11c5a

Browse files
author
wardlin
committed
fix
1 parent 76f967e commit ec11c5a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stats.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,20 @@ func (t *TraceRoute) Stats() error {
112112
t.LastArrived += 1
113113
if t.LastArrived == t.MaxPath {
114114
t.Stop()
115+
return nil
115116
}
116117
}
117118

118119
default:
119120
//监听stop信号
120121
if atomic.LoadInt32(t.stopSignal) == 1 {
121-
break
122+
return nil
122123
}
123124
}
124125

125126
}
126127

128+
return nil
127129
}
128130

129131
type HopData struct {

0 commit comments

Comments
 (0)