Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Panic in webscokets #111

@mr-tron

Description

@mr-tron
panic: send on closed channel
        panic: close of closed channel

goroutine 467 [running]:
github.com/Kucoin/kucoin-go-sdk.(*WebSocketClient).read.func1(0xc000510600)
        /home/user/prog/gopath/pkg/mod/github.com/!kucoin/kucoin-go-sdk@v1.2.10/websocket.go:248 +0x2f
panic(0xa972c0, 0xc18420)
        /home/user/prog/gopath/go1.16/src/runtime/panic.go:965 +0x1b9
github.com/Kucoin/kucoin-go-sdk.(*WebSocketClient).read(0xc000510600)
        /home/user/prog/gopath/pkg/mod/github.com/!kucoin/kucoin-go-sdk@v1.2.10/websocket.go:271 +0x149
created by github.com/Kucoin/kucoin-go-sdk.(*WebSocketClient).Connect
        /home/user/prog/gopath/pkg/mod/github.com/!kucoin/kucoin-go-sdk@v1.2.10/websocket.go:240 +0x572

I think it's reproduces on closing connection from server side

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions