forked from lug/matterbridge
		
	Exit when a bridge fails to start
This commit is contained in:
		| @@ -39,7 +39,7 @@ func main() { | |||||||
| 		go func(gw config.SameChannelGateway) { | 		go func(gw config.SameChannelGateway) { | ||||||
| 			err := samechannelgateway.New(cfg, &gw) | 			err := samechannelgateway.New(cfg, &gw) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				log.Debugf("starting gateway failed %#v", err) | 				log.Fatalf("starting gateway failed %#v", err) | ||||||
| 			} | 			} | ||||||
| 		}(gw) | 		}(gw) | ||||||
| 	} | 	} | ||||||
| @@ -52,7 +52,7 @@ func main() { | |||||||
| 		g := gateway.New(cfg, &gw) | 		g := gateway.New(cfg, &gw) | ||||||
| 		err := g.Start() | 		err := g.Start() | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			log.Debugf("starting gateway failed %#v", err) | 			log.Fatalf("starting gateway failed %#v", err) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	select {} | 	select {} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wim
					Wim