mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-06 05:12:26 +08:00
Fixed send clipboard thread time issue #4749
This commit is contained in:
@@ -273,6 +273,7 @@ Client::leave()
|
||||
|
||||
if (m_sendClipboardThread != NULL) {
|
||||
StreamChunker::interruptClipboard();
|
||||
m_sendClipboardThread->wait();
|
||||
m_sendClipboardThread = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -509,6 +509,8 @@ Server::switchScreen(BaseClientProxy* dst,
|
||||
// clipboard data could be corrupted on the other side
|
||||
if (m_sendClipboardThread != NULL) {
|
||||
StreamChunker::interruptClipboard();
|
||||
m_sendClipboardThread->wait();
|
||||
m_sendClipboardThread = NULL;
|
||||
}
|
||||
|
||||
// send the clipboard data to new active screen
|
||||
|
||||
Reference in New Issue
Block a user