mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Close connection before reopening
This commit is contained in:
parent
968d3bf6bf
commit
e36a15c706
@ -108,6 +108,8 @@ func (b *Bsoulseek) loginLoop() {
|
||||
if !firstConnect {
|
||||
// Cleanup as we are making new sender/receiver routines
|
||||
b.fatalErrors = make(chan error)
|
||||
err := b.conn.Close()
|
||||
b.Log.Errorf("Error closing conn: %s", err)
|
||||
close(b.messagesToSend)
|
||||
}
|
||||
// Connect to slsk server
|
||||
|
Loading…
Reference in New Issue
Block a user