From eec67d74021c59341a780704e3f2e61715c7340a Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 11 Jul 2008 14:33:47 +0000 Subject: trying to fix mantis #1711. --- .../Environment/Modules/Avatar/Chat/IRCBridgeModule.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs index 16fd753..f90b7e6 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs @@ -503,11 +503,18 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat public void Reconnect() { m_connected = false; - listener.Abort(); - pingSender.Abort(); - m_writer.Close(); - m_reader.Close(); - m_tcp.Close(); + try + { + listener.Abort(); + pingSender.Abort(); + m_writer.Close(); + m_reader.Close(); + m_tcp.Close(); + } + catch (Exception) + { + } + if (m_enabled) { Connect(m_last_scenes); -- cgit v1.1