mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 12:50:27 +00:00
Exit when a bridge fails to start
This commit is contained in:
parent
adec73f542
commit
43e765f4f9
@ -39,7 +39,7 @@ func main() {
|
||||
go func(gw config.SameChannelGateway) {
|
||||
err := samechannelgateway.New(cfg, &gw)
|
||||
if err != nil {
|
||||
log.Debugf("starting gateway failed %#v", err)
|
||||
log.Fatalf("starting gateway failed %#v", err)
|
||||
}
|
||||
}(gw)
|
||||
}
|
||||
@ -52,7 +52,7 @@ func main() {
|
||||
g := gateway.New(cfg, &gw)
|
||||
err := g.Start()
|
||||
if err != nil {
|
||||
log.Debugf("starting gateway failed %#v", err)
|
||||
log.Fatalf("starting gateway failed %#v", err)
|
||||
}
|
||||
}
|
||||
select {}
|
||||
|
Loading…
Reference in New Issue
Block a user