diff options
author | Adam <Adam@anope.org> | 2011-08-29 17:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-29 17:08:26 -0400 |
commit | 1c5ff92c9398c01708158f0a057905ad50a3255c (patch) | |
tree | 004f19d488c0a3dc48459d345200f2290ecd5168 /src/main.cpp | |
parent | b24ea29bf578e115a3bab71cd33ca2e4672fbfba (diff) |
Changed a few fatal exceptions to shutdown a bit more gracefully
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 875e4eeb6..3730c60ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -68,9 +68,6 @@ time_t Anope::CurTime = time(NULL); /******** Local variables! ********/ -/* Set to 1 after we've set everything up */ -static bool started = false; - /*************************************************************************/ class UpdateTimer : public Timer @@ -118,7 +115,7 @@ class UplinkSocket : public ConnectionSocket ~UplinkSocket() { - if (Me && !Me->GetLinks().empty() && Me->GetLinks()[0]->IsSynced()) + if (ircdproto && Me && !Me->GetLinks().empty() && Me->GetLinks()[0]->IsSynced()) { FOREACH_MOD(I_OnServerDisconnect, OnServerDisconnect()); @@ -354,8 +351,6 @@ int main(int ac, char **av, char **envp) return_code = -1; } - started = true; - /* Set up timers */ time_t last_check = Anope::CurTime; UpdateTimer updateTimer(Config->UpdateTimeout); |