summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-04 17:57:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-04 18:22:02 +0300
commitec3c69c15907532f5b1a9a5998dbc7676c6b5f9e (patch)
tree341d6e4842c2faa6ff1e2b702d8c796fc75f4cb8 /src
parentde73e67e830c15e6b623ba03eda88f9faacac40c (diff)
downloadplus-ec3c69c15907532f5b1a9a5998dbc7676c6b5f9e.tar.gz
plus-ec3c69c15907532f5b1a9a5998dbc7676c6b5f9e.tar.bz2
plus-ec3c69c15907532f5b1a9a5998dbc7676c6b5f9e.tar.xz
plus-ec3c69c15907532f5b1a9a5998dbc7676c6b5f9e.zip
Send keep alive packets to server if register dialog opened.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 21f44d66a..23ca0e608 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1845,7 +1845,9 @@ void Client::slowLogic()
mPing = tick_time;
if (mState == State::UPDATE ||
mState == State::LOGIN ||
- mState == State::LOGIN_ATTEMPT)
+ mState == State::LOGIN_ATTEMPT ||
+ mState == State::REGISTER ||
+ mState == State::REGISTER_ATTEMPT)
{
if (loginHandler != nullptr)
loginHandler->ping();