shutdown handle engine not being on
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
bdb9ac5db4
commit
ab14884bcf
10
app/app.go
10
app/app.go
|
@ -323,8 +323,10 @@ func (app *application) shutdownPeer(onion string) {
|
|||
delete(app.eventBuses, onion)
|
||||
app.peers[onion].Shutdown()
|
||||
delete(app.peers, onion)
|
||||
app.engines[onion].Shutdown()
|
||||
delete(app.engines, onion)
|
||||
if _, ok := app.engines[onion]; ok {
|
||||
app.engines[onion].Shutdown()
|
||||
delete(app.engines, onion)
|
||||
}
|
||||
log.Debugf("shutting down plugins for %v", onion)
|
||||
pluginsI, ok := app.plugins.Load(onion)
|
||||
if ok {
|
||||
|
@ -349,7 +351,9 @@ func (app *application) Shutdown() {
|
|||
return true
|
||||
})
|
||||
log.Debugf("Shutting Down Engines for %v", id)
|
||||
app.engines[id].Shutdown()
|
||||
if _, ok := app.engines[id]; ok {
|
||||
app.engines[id].Shutdown()
|
||||
}
|
||||
log.Debugf("Shutting Down Bus for %v", id)
|
||||
app.eventBuses[id].Shutdown()
|
||||
log.Debugf("Done Shutdown for peer %v", id)
|
||||
|
|
Loading…
Reference in New Issue