mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-13 10:48:59 +08:00
websocket改为2秒重试
This commit is contained in:
@@ -91,7 +91,7 @@ func (ws *WebsocketClient) OnRun() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ws.state == 0 {
|
if ws.state == 0 {
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
ws.StartConnect()
|
ws.StartConnect()
|
||||||
} else if ws.state == 1 {
|
} else if ws.state == 1 {
|
||||||
ws.conn.Close()
|
ws.conn.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user