summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-12 17:24:14 +0000
committerSadie Powell <sadie@witchery.services>2024-11-16 12:49:45 +0000
commitde16238e019223eb1b06eb791ec2abdf29b8700c (patch)
treeb89380ec30e313213524ba801f0eefdaaa97405e
parenta668c8b52074f52467dd52474618c054c89b2804 (diff)
Process all socket events before connecting to the uplink.
This ensures that the SQL import actually succeeds before we do something that might terminate the process.
-rw-r--r--src/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 39d1033c6..e32bafb74 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -556,6 +556,7 @@ void Anope::Init(int ac, char **av)
EventReturn MOD_RESULT;
FOREACH_RESULT(OnLoadDatabase, MOD_RESULT, ());
static_cast<void>(MOD_RESULT);
+ SocketEngine::Process();
Log() << "Databases loaded";
FOREACH_MOD(OnPostInit, ());