rpc: add StartWhenSynchronized option, fix #2433

This commit is contained in:
Roman Khimov 2022-04-22 11:47:36 +03:00
parent 2593bb0535
commit 887fe0634d
5 changed files with 28 additions and 3 deletions

View file

@ -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)