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