diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs | 17 |
1 files changed, 12 insertions, 5 deletions
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 | |||
503 | public void Reconnect() | 503 | public void Reconnect() |
504 | { | 504 | { |
505 | m_connected = false; | 505 | m_connected = false; |
506 | listener.Abort(); | 506 | try |
507 | pingSender.Abort(); | 507 | { |
508 | m_writer.Close(); | 508 | listener.Abort(); |
509 | m_reader.Close(); | 509 | pingSender.Abort(); |
510 | m_tcp.Close(); | 510 | m_writer.Close(); |
511 | m_reader.Close(); | ||
512 | m_tcp.Close(); | ||
513 | } | ||
514 | catch (Exception) | ||
515 | { | ||
516 | } | ||
517 | |||
511 | if (m_enabled) | 518 | if (m_enabled) |
512 | { | 519 | { |
513 | Connect(m_last_scenes); | 520 | Connect(m_last_scenes); |