Compare commits
1 Commits
v0.0.9
...
e686e69a24
| Author | SHA1 | Date | |
|---|---|---|---|
| e686e69a24 |
@@ -189,7 +189,10 @@ func (wsClient *SafeWebsocketClient) connect() error {
|
|||||||
})
|
})
|
||||||
|
|
||||||
wsClient.mu.WriteHandler(func() error {
|
wsClient.mu.WriteHandler(func() error {
|
||||||
|
if wsClient.conn != nil {
|
||||||
wsClient.conn.Close()
|
wsClient.conn.Close()
|
||||||
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
wsClient.ctx = ctx
|
wsClient.ctx = ctx
|
||||||
wsClient.cancel = cancel
|
wsClient.cancel = cancel
|
||||||
|
|||||||
Reference in New Issue
Block a user