mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-18 11:40:24 +08:00
优化代码
This commit is contained in:
@@ -76,6 +76,9 @@ func (this *APIStream) loop() error {
|
|||||||
|
|
||||||
nodeStream, err := rpcClient.NodeRPC().NodeStream(ctx)
|
nodeStream, err := rpcClient.NodeRPC().NodeStream(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if this.isQuiting {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return errors.Wrap(err)
|
return errors.Wrap(err)
|
||||||
}
|
}
|
||||||
this.stream = nodeStream
|
this.stream = nodeStream
|
||||||
|
|||||||
Reference in New Issue
Block a user