summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-19 00:40:24 +0000
committerSadie Powell <sadie@witchery.services>2024-11-19 00:40:24 +0000
commitb4b51d48285278125d5c32a4e429e2c66c15d78e (patch)
tree2022a3d7eb2812ba3859020adee92e8db9716dc1
parentc55d8450a4224c63e712c0930d78e88d98f956ae (diff)
parent7083c424c25e797a8ffbded27ecb4fc8f93e0dd3 (diff)
Merge branch '2.0' into 2.1.
-rw-r--r--modules/database/db_sql.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp
index 22b617d9f..f97eadc9f 100644
--- a/modules/database/db_sql.cpp
+++ b/modules/database/db_sql.cpp
@@ -166,6 +166,14 @@ public:
this->import = block->Get<bool>("import");
}
+ void OnPostInit() override
+ {
+ // If we are importing from flatfile we need to force a socket engine
+ // flush to ensure it actually gets written to the database before we
+ // connect to the uplink.
+ SocketEngine::Process();
+ }
+
void OnShutdown() override
{
this->shutting_down = true;