From 1528727cc8d59ca9ef9e9929ad4ae598e7f19771 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 25 Apr 2010 01:23:23 +0000 Subject: Fixed a crash when shutdown when not connected git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2915 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 801d7fcc1..8ffc8df13 100644 --- a/src/main.c +++ b/src/main.c @@ -233,7 +233,8 @@ static void services_shutdown() if (!quitmsg) quitmsg = "Terminating, reason unknown"; Alog() << quitmsg; - if (started) { + if (started && UplinkSock) + { ircdproto->SendSquit(Config.ServerName, quitmsg); if (uplink) delete [] uplink; -- cgit