diff options
-rw-r--r-- | common/rfb/CConnection.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx index 675b49d6..396b48b3 100644 --- a/common/rfb/CConnection.cxx +++ b/common/rfb/CConnection.cxx @@ -388,6 +388,16 @@ void CConnection::close() { state_ = RFBSTATE_CLOSING; + /* + * We're already shutting down, so just log any pending decoder + * problems + */ + try { + decoder.flush(); + } catch (rdr::Exception& e) { + vlog.error("%s", e.str()); + } + setFramebuffer(NULL); delete csecurity; csecurity = NULL; |