summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-06 19:34:35 -0500
committerAdam <Adam@anope.org>2013-04-06 19:34:35 -0500
commit36602224b8b1a11326a224779d16bcb12f0ed532 (patch)
treea542057c83aab53bc1c3d50cf300b2f64ebf6143 /src/main.cpp
parentccecfdf44506d97874cdd1bc8b73a273188310c4 (diff)
Remove the runtime module directory on non-windows because we no longer overwrite modules on install without deleting them first
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0bac78e72..2e15f5874 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -117,10 +117,10 @@ int main(int ac, char **av, char **envp)
#endif
Anope::ServicesDir = BinaryDir.substr(0, n);
+#ifdef _WIN32
/* Clean out the module runtime directory prior to running, just in case files were left behind during a previous run */
ModuleManager::CleanupRuntimeDirectory();
-#ifdef _WIN32
OnStartup();
#endif
@@ -187,9 +187,9 @@ int main(int ac, char **av, char **envp)
for (Module *m; (m = ModuleManager::FindFirstOf(PROTOCOL)) != NULL;)
ModuleManager::UnloadModule(m, NULL);
+#ifdef _WIN32
ModuleManager::CleanupRuntimeDirectory();
-#ifdef _WIN32
OnShutdown();
#endif