neoneo-go/pkg/rpc
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
..
client rpc: avoid panic on double-call to *WSClient.Close() 2022-05-07 11:59:55 +03:00
request rpc: add Rules signer scope to request parameters 2022-03-03 12:18:19 +03:00
response rpc/storage: add storage changes to invoke* diagnostics 2022-01-19 00:02:19 +03:00
server *: remove io/ioutil uses 2022-03-17 19:39:18 +03:00
rpc_config.go rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00