Browse Source

Send RPC leave messages on shutdown

master
HimbeerserverDE 1 year ago
parent
commit
aa03e87e00
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
  1. 5
      end.go

5
end.go

@ -21,18 +21,17 @@ func End(crash, reconnect bool) {
clt.CloseWith(reason, "", reconnect)
}
time.Sleep(time.Second)
rpcSrvMu.Lock()
for srv := range rpcSrvs {
srv.Close()
}
rpcSrvMu.Unlock()
time.Sleep(time.Second)
Announce(AnnounceDelete)
log.Writer().(*Logger).Close()
gocurses.End()
if crash {

Loading…
Cancel
Save