summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-12 17:24:14 +0000
committerSadie Powell <sadie@witchery.services>2024-11-12 17:24:14 +0000
commit127ea3e68a4d8a5d7177a8bb6b16bf06c2312cbe (patch)
tree46bcd335481bd15ebcbb4caabef8d3d32d319552 /src
parentba11b5eab0f01bea6cbf673e9e8eb246bd0027db (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.
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 8e79bd5bb..85b0e440d 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -562,6 +562,7 @@ bool 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, ());