summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-22 00:16:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-22 00:16:34 +0300
commitfbbf0771c39c27473e9b1b579aef68ab706fde50 (patch)
tree9a64e1a50db19724aed14153306af378ee2b5f34 /src/net/tmwa
parentd99acda19b6d27ed4d931dfa14b5894e22dfc6af (diff)
downloadmanaverse-fbbf0771c39c27473e9b1b579aef68ab706fde50.tar.gz
manaverse-fbbf0771c39c27473e9b1b579aef68ab706fde50.tar.bz2
manaverse-fbbf0771c39c27473e9b1b579aef68ab706fde50.tar.xz
manaverse-fbbf0771c39c27473e9b1b579aef68ab706fde50.zip
eathena: possible fix for sending login packets.
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;