From ed071817e68a5154d19fe45774282734cc9ced02 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Tue, 12 Nov 2024 19:48:28 -0600 Subject: [PATCH] Remove the resetOrigin call on ensureConnection that turned out to be unnecessary --- pkg/websocketclient/websocketclient.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/websocketclient/websocketclient.go b/pkg/websocketclient/websocketclient.go index 6608391..6b06f6f 100644 --- a/pkg/websocketclient/websocketclient.go +++ b/pkg/websocketclient/websocketclient.go @@ -393,7 +393,6 @@ func (c *WebsocketClient) generateDialer() error { // ensureConnection ensures there is an open websocket connection and the listener is listening func (c *WebsocketClient) ensureConnection() error { if c.conn == nil { - c.resetOrigin() u := url.URL{Scheme: "wss", Host: fmt.Sprintf("%s:%d", c.baseURL.Host, c.daemonPort), Path: "/"} var err error c.conn, _, err = c.daemonDialer.Dial(u.String(), nil)