neo-go/pkg
Anna Shaleva d68f57b9f9 rpc: avoid panic on double-call to *WSClient.Close()
Although it's the caller's duty to avoid WSClient re-closing, we
still can handle it.

Fixes the following neofs-node error:
```
panic: close of closed channel

goroutine 98 [running]:
github.com/nspcc-dev/neo-go/pkg/rpc/client.(*WSClient).Close(...)
        github.com/nspcc-dev/neo-go@v0.98.3-pre.0.20220321144433-3b639f518ebb/pkg/rpc/client/wsclient.go:120
github.com/nspcc-dev/neofs-node/pkg/morph/subscriber.(*subscriber).Close(0x13)
        github.com/nspcc-dev/neofs-node/pkg/morph/subscriber/subscriber.go:108 +0x29
github.com/nspcc-dev/neofs-node/pkg/morph/event.listener.Stop(...)
        github.com/nspcc-dev/neofs-node/pkg/morph/event/listener.go:573
created by github.com/nspcc-dev/neofs-node/pkg/innerring.(*Server).Stop
        github.com/nspcc-dev/neofs-node/pkg/innerring/innerring.go:285 +0x12f
```
2022-05-07 11:59:55 +03:00
..
compiler compiler: revert a part of ad65d1fa1f 2022-03-17 19:39:18 +03:00
config *: remove io/ioutil uses 2022-03-17 19:39:18 +03:00
consensus config/core: allow to change the number of validators 2022-01-31 23:14:38 +03:00
core core: consider Rules witness scope as valid 2022-05-07 10:50:11 +03:00
crypto core: drop GetStandBy* methods 2022-01-31 23:14:38 +03:00
encoding *: use internal variables for simple big.NewInt() values 2021-12-01 21:36:25 +03:00
interop Revert "interop: use All flags for management deploy and update calls" 2022-03-21 14:32:11 +03:00
io io: optimize WriteString, avoid allocation 2021-12-01 21:36:25 +03:00
neotest compiler: update x/tools package 2022-01-20 13:21:26 +03:00
network network: check compressed payload size in decompress 2022-05-07 11:57:48 +03:00
rpc rpc: avoid panic on double-call to *WSClient.Close() 2022-05-07 11:59:55 +03:00
services Merge pull request #2372 from nspcc-dev/jsonpath-oom 2022-03-17 12:34:49 +03:00
smartcontract *: remove io/ioutil uses 2022-03-17 19:39:18 +03:00
util util: allow to marshal Uint160 in YAML 2022-02-21 10:38:20 +03:00
vm Merge pull request #2399 from nspcc-dev/fuzz-tests 2022-03-21 12:00:55 +03:00
wallet *: remove io/ioutil uses 2022-03-17 19:39:18 +03:00