diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-11-18 16:31:41 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-06-19 16:39:07 +0200 |
commit | bc760d93b71070c7d65588686a494dcd5f228dc6 (patch) | |
tree | e86f5df18681bf634d7b48d2cbf1f15fa45b6ae0 /common/rfb/SConnection.cxx | |
parent | db68216c721763fb2f252d8f3c7c47e6be3998c6 (diff) | |
download | tigervnc-bc760d93b71070c7d65588686a494dcd5f228dc6.tar.gz tigervnc-bc760d93b71070c7d65588686a494dcd5f228dc6.zip |
Explicitly request timer repetition
One-shot timers are more common, so let's change the API a bit to make
that use case simpler. This API also makes it more clear what is
happening.
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r-- | common/rfb/SConnection.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx index 33b2d850..402b0c04 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx @@ -287,11 +287,11 @@ bool SConnection::processInitMsg() return reader_->readClientInit(); } -bool SConnection::handleAuthFailureTimeout(Timer* /*t*/) +void SConnection::handleAuthFailureTimeout(Timer* /*t*/) { if (state_ != RFBSTATE_SECURITY_FAILURE) { close("SConnection::handleAuthFailureTimeout: invalid state"); - return false; + return; } try { @@ -304,12 +304,10 @@ bool SConnection::handleAuthFailureTimeout(Timer* /*t*/) os->flush(); } catch (rdr::Exception& e) { close(e.str()); - return false; + return; } close(authFailureMsg.c_str()); - - return false; } void SConnection::throwConnFailedException(const char* format, ...) |