Merge pull request #3632 from wpaulino/server-not-active-closechannel

rpcserver: ensure server has started before CloseChannel
This commit is contained in:
Wilmer Paulino
2019-10-28 17:01:21 -04:00
committed by GitHub
3 changed files with 18 additions and 15 deletions

View File

@@ -90,6 +90,11 @@ var (
// given peer.
ErrPeerNotConnected = errors.New("peer is not connected")
// ErrServerNotActive indicates that the server has started but hasn't
// fully finished the startup process.
ErrServerNotActive = errors.New("server is still in the process of " +
"starting")
// ErrServerShuttingDown indicates that the server is in the process of
// gracefully exiting.
ErrServerShuttingDown = errors.New("server is shutting down")