diff --git a/app/app.go b/app/app.go index 78c7136..6c68e71 100644 --- a/app/app.go +++ b/app/app.go @@ -196,11 +196,10 @@ func (app *application) installProfile(profile peer.CwtchPeer) bool { app.engines[profile.GetOnion()], _ = profile.GenerateProtocolEngine(app.acn, app.eventBuses[profile.GetOnion()]) app.appBus.Publish(event.NewEvent(event.NewPeer, map[event.Field]string{event.Identity: profile.GetOnion(), event.Created: event.False})) return true - } else { - // Otherwise shutdown the connections - profile.Shutdown() - return false } + // Otherwise shutdown the connections + profile.Shutdown() + return false } // GetPrimaryBus returns the bus the Application uses for events that aren't peer specific