mirror of https://github.com/ehang-io/nps
fix mux conn read after Stop() method invoked will panic
parent
999fac8ad7
commit
6703a98419
|
@ -293,6 +293,7 @@ copyData:
|
||||||
// reset to 60s if timeout and data still available
|
// reset to 60s if timeout and data still available
|
||||||
Self.off = 0
|
Self.off = 0
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Self.CloseWindow() // also close the window, to avoid read twice
|
||||||
return // queue receive stop or time out, break the loop and return
|
return // queue receive stop or time out, break the loop and return
|
||||||
}
|
}
|
||||||
//logs.Warn("pop element", Self.element.l, Self.element.part)
|
//logs.Warn("pop element", Self.element.l, Self.element.part)
|
||||||
|
|
Loading…
Reference in New Issue