From 5e1982042511cf03bd780fb5f2d96c4657c22e50 Mon Sep 17 00:00:00 2001 From: walker0643 <> Date: Sun, 1 Apr 2018 21:13:56 -0400 Subject: [PATCH] remove dangling handler..fixes race condition when a clipboard event is queued but not dispatched before disconnect --- src/lib/client/ServerProxy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/client/ServerProxy.cpp b/src/lib/client/ServerProxy.cpp index 9224db6a..4fbf76af 100644 --- a/src/lib/client/ServerProxy.cpp +++ b/src/lib/client/ServerProxy.cpp @@ -81,6 +81,7 @@ ServerProxy::~ServerProxy() setKeepAliveRate(-1.0); m_events->removeHandler(m_events->forIStream().inputReady(), m_stream->getEventTarget()); + m_events->removeHandler(m_events->forClipboard().clipboardSending(), this); } void