From 47ef8b09bd423b5cb548a905114475179ef903d0 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Thu, 21 Jul 2016 03:17:02 -0700 Subject: [PATCH] #4768 Reset thread when it finishes --- src/lib/server/Server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/server/Server.cpp b/src/lib/server/Server.cpp index 7e85e811..f4d26bff 100644 --- a/src/lib/server/Server.cpp +++ b/src/lib/server/Server.cpp @@ -1870,6 +1870,8 @@ Server::sendClipboardThread(void*) for (ClipboardID id = 0; id < kClipboardEnd; ++id) { m_active->setClipboard(id, &m_clipboards[id].m_clipboard); } + + m_sendClipboardThread = NULL; } void