websocket改为2秒重试

This commit is contained in:
boyce
2019-03-27 18:50:58 +08:00
parent 365c398785
commit 5f49842089

View File

@@ -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()