This commit is contained in:
2025-02-14 09:43:49 +08:00
parent 97037adbbb
commit 8fbfcbf285
19 changed files with 755 additions and 288 deletions

View File

@ -84,7 +84,12 @@ func (wm *BinanceWebSocketManager) Restart(apiKey, apiSecret, proxyType, proxyAd
wm.proxyType = proxyType
wm.proxyAddress = proxyAddress
wm.reconnect <- struct{}{}
if wm.isStopped {
wm.run()
} else {
wm.reconnect <- struct{}{}
}
return wm
}