mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
更改 wshandle/client.go 超时/手动终端log显示
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com>
This commit is contained in:
@@ -111,11 +111,9 @@ func (c *WsConn) messageSendHandler() {
|
||||
// 等到了结果,直接退出
|
||||
case <-c.Done:
|
||||
// 如果等待 1s 还是拿不到结果,不再等待,超时退出
|
||||
case <-time.After(time.Second):
|
||||
case <-time.After(1 * time.Second):
|
||||
}
|
||||
//os.Exit(1)
|
||||
panic("请求超时退出")
|
||||
// return
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user