rpc: add StartWhenSynchronized option, fix #2433
This commit is contained in:
parent
2593bb0535
commit
887fe0634d
5 changed files with 28 additions and 3 deletions
|
@ -260,6 +260,9 @@ func (s *Server) Start() {
|
|||
func (s *Server) Shutdown() {
|
||||
var httpsErr error
|
||||
|
||||
if !s.started.Load() {
|
||||
return
|
||||
}
|
||||
// Signal to websocket writer routines and handleSubEvents.
|
||||
close(s.shutdown)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue