neo-go/pkg/rpc
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
..
client rpc: avoid panic on double-call to *WSClient.Close() 2022-04-05 16:31:51 +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 rpc: regenerate basic chain and adjust RPC server tests 2022-03-30 11:32:30 +03:00
rpc_config.go rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00