diff options
author | Wim <wim@42.be> | 2017-04-01 17:24:19 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-04-01 17:24:19 +0200 |
commit | a16ad8bf3b39d99658f306d3c065680c606e4801 (patch) | |
tree | 370528dd84572928161f4eff988f738581394ac0 /bridge/irc/irc.go | |
parent | 1e0490bd36ec20a7de43587f43feb6ec63c02ddb (diff) | |
download | matterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.tar.gz matterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.tar.bz2 matterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.zip |
Reuse connection when using same bridge with another gateway. See #87
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r-- | bridge/irc/irc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index db430800..78ba2e54 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -60,6 +60,7 @@ func (b *Birc) Command(msg *config.Message) string { } func (b *Birc) Connect() error { + flog.Info("hier?") b.Local = make(chan config.Message, b.Config.MessageQueue+10) flog.Infof("Connecting %s", b.Config.Server) i := irc.IRC(b.Config.Nick, b.Config.Nick) @@ -92,7 +93,7 @@ func (b *Birc) Connect() error { } func (b *Birc) Disconnect() error { - b.i.Disconnect() + //b.i.Disconnect() close(b.Local) return nil } |