mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-07 00:05:49 +08:00
优化代码
This commit is contained in:
@@ -90,13 +90,13 @@ func (this *APIStream) loop() error {
|
||||
break
|
||||
}
|
||||
|
||||
message, err := nodeStream.Recv()
|
||||
if err != nil {
|
||||
message, streamErr := nodeStream.Recv()
|
||||
if streamErr != nil {
|
||||
if this.isQuiting {
|
||||
remotelogs.Println("API_STREAM", "quit")
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
return streamErr
|
||||
}
|
||||
|
||||
// 处理消息
|
||||
|
||||
Reference in New Issue
Block a user