mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-10 13:57:44 +08:00
Revert "Add keepAlive message before send file/clipboard data #4768"
This reverts commit 5287c62540b277474603ea8a38c53b50cb8f4d52.
This commit is contained in:
committed by
Xinyu Hou
parent
b5b2cdfade
commit
7cbd3fdcb4
@@ -84,6 +84,8 @@ StreamChunker::sendFile(
|
||||
}
|
||||
|
||||
if (sendStopwatch.getTime() > SEND_THRESHOLD) {
|
||||
events->addEvent(Event(events->forFile().keepAlive(), eventTarget));
|
||||
|
||||
// make sure we don't read too much from the mock data.
|
||||
if (sentLength + chunkSize > size) {
|
||||
chunkSize = size - sentLength;
|
||||
@@ -149,6 +151,8 @@ StreamChunker::sendClipboard(
|
||||
}
|
||||
|
||||
if (sendStopwatch.getTime() > SEND_THRESHOLD) {
|
||||
events->addEvent(Event(events->forFile().keepAlive(), eventTarget));
|
||||
|
||||
// make sure we don't read too much from the mock data.
|
||||
if (sentLength + chunkSize > size) {
|
||||
chunkSize = size - sentLength;
|
||||
|
||||
Reference in New Issue
Block a user