summaryrefslogtreecommitdiffstats
path: root/matterbridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-02-17 22:12:53 +0100
committerWim <wim@42.be>2017-02-17 22:12:53 +0100
commit7558a2162e79ffa29b11881fe249ec836a8c8b3d (patch)
treec64a7e3898d7ac9e49523ed9c0b2a4eaac492886 /matterbridge.go
parentfe258e1b6752f2751d7aec742a4ee20a5594dcdb (diff)
parent62b165c0b4052f96ab89c358301bf246d239eba7 (diff)
downloadmatterbridge-msglm-7558a2162e79ffa29b11881fe249ec836a8c8b3d.tar.gz
matterbridge-msglm-7558a2162e79ffa29b11881fe249ec836a8c8b3d.tar.bz2
matterbridge-msglm-7558a2162e79ffa29b11881fe249ec836a8c8b3d.zip
Merge branch 'status'
Diffstat (limited to 'matterbridge.go')
-rw-r--r--matterbridge.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/matterbridge.go b/matterbridge.go
index bb125c82..32bc4285 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -36,12 +36,11 @@ func main() {
continue
}
fmt.Printf("starting samechannel gateway %#v\n", gw.Name)
- go func(gw config.SameChannelGateway) {
- err := samechannelgateway.New(cfg, &gw)
- if err != nil {
- log.Fatalf("starting gateway failed %#v", err)
- }
- }(gw)
+ g := samechannelgateway.New(cfg, &gw)
+ err := g.Start()
+ if err != nil {
+ log.Fatalf("starting gateway failed %#v", err)
+ }
}
for _, gw := range cfg.Gateway {