summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/generalhandler.cpp8
-rw-r--r--src/net/tmwa/generalhandler.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 483f08ec7..bf7ff4148 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -286,6 +286,14 @@ void GeneralHandler::unload()
clearHandlers();
}
+void GeneralHandler::flushSend()
+{
+ if (!mNetwork)
+ return;
+
+ mNetwork->flush();
+}
+
void GeneralHandler::flushNetwork()
{
if (!mNetwork)
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index 453d4e472..118d6dc4d 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -52,6 +52,8 @@ class GeneralHandler final : public MessageHandler,
void flushNetwork() override final;
+ void flushSend() override final;
+
void clearHandlers() override final;
void reloadPartially() const override final;