Skip to content

Commit

Permalink
Remove the resetOrigin call on ensureConnection that turned out to be…
Browse files Browse the repository at this point in the history
… unnecessary
  • Loading branch information
cmmarslender committed Nov 13, 2024
1 parent 9bba038 commit ed07181
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/websocketclient/websocketclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed07181

Please sign in to comment.