- Fix reconnect guard

- Avoid double client creation
This commit is contained in:
Zoltán Papp
2024-06-21 00:55:07 +02:00
parent 6801dcb3f6
commit 06ceac65de
3 changed files with 26 additions and 7 deletions
+1
View File
@@ -26,6 +26,7 @@ func Dial(address string) (net.Conn, error) {
wsConn, _, err := websocket.Dial(context.Background(), url, opts)
if err != nil {
log.Errorf("failed to dial to Relay server '%s': %s", url, err)
return nil, err
}