Check connection to homeserver before trying to log in for e2be
This commit is contained in:
parent
3e7853f125
commit
f86f06a403
4
main.go
4
main.go
@ -266,6 +266,8 @@ func (bridge *Bridge) Start() {
|
|||||||
bridge.Log.Fatalln("Failed to initialize database:", err)
|
bridge.Log.Fatalln("Failed to initialize database:", err)
|
||||||
os.Exit(15)
|
os.Exit(15)
|
||||||
}
|
}
|
||||||
|
bridge.Log.Debugln("Checking connection to homeserver")
|
||||||
|
bridge.ensureConnection()
|
||||||
if bridge.Crypto != nil {
|
if bridge.Crypto != nil {
|
||||||
err := bridge.Crypto.Init()
|
err := bridge.Crypto.Init()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -278,8 +280,6 @@ func (bridge *Bridge) Start() {
|
|||||||
bridge.Provisioning.Init()
|
bridge.Provisioning.Init()
|
||||||
}
|
}
|
||||||
bridge.LoadRelaybot()
|
bridge.LoadRelaybot()
|
||||||
bridge.Log.Debugln("Checking connection to homeserver")
|
|
||||||
bridge.ensureConnection()
|
|
||||||
bridge.Log.Debugln("Starting application service HTTP server")
|
bridge.Log.Debugln("Starting application service HTTP server")
|
||||||
go bridge.AS.Start()
|
go bridge.AS.Start()
|
||||||
bridge.Log.Debugln("Starting event processor")
|
bridge.Log.Debugln("Starting event processor")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user