From 6265ea371ecf7544c9e6635fd7ee44a93c9c604d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 30 May 2008 16:16:03 +0000 Subject: * Stop the IRC module throwing a nre on shutdown if it isn't actually being used --- OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs index a7abfb4..7ee7eda 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs @@ -150,8 +150,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat public void Close() { - m_irc.Close(); - m_log.Info("[IRC] closed connection to IRC server"); + if (null != m_irc) + { + m_irc.Close(); + m_log.Info("[IRC] closed connection to IRC server"); + } } public string Name -- cgit v1.1