mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-14 15:17:49 +02:00
created a new thread to write file to drop directory on client side
This commit is contained in:
parent
8301d50ab7
commit
6e50945bf9
5 changed files with 55 additions and 38 deletions
|
@ -76,7 +76,7 @@ CServer::CServer(CConfig& config, CPrimaryClient* primaryClient, CScreen* screen
|
|||
m_lockedToScreen(false),
|
||||
m_screen(screen),
|
||||
m_sendFileThread(NULL),
|
||||
m_writeToDropDir(NULL)
|
||||
m_writeToDropDirThread(NULL)
|
||||
{
|
||||
// must have a primary client and it must have a canonical name
|
||||
assert(m_primaryClient != NULL);
|
||||
|
@ -1958,7 +1958,7 @@ void
|
|||
CServer::onFileRecieveCompleted()
|
||||
{
|
||||
if (isReceivedFileSizeValid()) {
|
||||
m_writeToDropDir = new CThread(
|
||||
m_writeToDropDirThread = new CThread(
|
||||
new TMethodJob<CServer>(
|
||||
this, &CServer::writeToDropDirThread));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue