neoneo-go/pkg
Anna Shaleva 850f56b367 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-04-05 16:31:51 +03:00
..
compiler compiler: fix panic in notification check 2022-03-24 16:34: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 Merge pull request #2414 from nspcc-dev/eliminate-getstorageitems 2022-04-01 09:16:42 +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 LICENSE.md: add NSPCC copyright 2022-04-04 12:34:18 +03:00
io io: optimize WriteString, avoid allocation 2021-12-01 21:36:25 +03:00
neotest core: rebase core tests onto neotest 2022-03-30 19:00:53 +03:00
network network: check compressed payload size in decompress 2022-03-24 17:22:55 +03:00
rpc rpc: avoid panic on double-call to *WSClient.Close() 2022-04-05 16:31:51 +03:00
services Merge pull request #2372 from nspcc-dev/jsonpath-oom 2022-03-17 12:34:49 +03:00
smartcontract smartcontract: remove unused ParameterFromStackItem 2022-04-01 08:38:35 +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