forked from MirrorHub/mautrix-whatsapp
Check connection to homeserver before trying to log in for e2be
This commit is contained in:
parent
3e7853f125
commit
f86f06a403
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -266,6 +266,8 @@ func (bridge *Bridge) Start() {
|
|||
bridge.Log.Fatalln("Failed to initialize database:", err)
|
||||
os.Exit(15)
|
||||
}
|
||||
bridge.Log.Debugln("Checking connection to homeserver")
|
||||
bridge.ensureConnection()
|
||||
if bridge.Crypto != nil {
|
||||
err := bridge.Crypto.Init()
|
||||
if err != nil {
|
||||
|
@ -278,8 +280,6 @@ func (bridge *Bridge) Start() {
|
|||
bridge.Provisioning.Init()
|
||||
}
|
||||
bridge.LoadRelaybot()
|
||||
bridge.Log.Debugln("Checking connection to homeserver")
|
||||
bridge.ensureConnection()
|
||||
bridge.Log.Debugln("Starting application service HTTP server")
|
||||
go bridge.AS.Start()
|
||||
bridge.Log.Debugln("Starting event processor")
|
||||
|
|
Loading…
Reference in a new issue