mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(corefile): cancel file transfer when peer goes offline
This commit is contained in:
parent
1628d495d1
commit
6522988e8c
|
@ -548,6 +548,6 @@ void CoreFile::onConnectionStatusChanged(uint32_t friendId, Status::Status state
|
|||
if (key >> 32 != friendId)
|
||||
continue;
|
||||
fileMap[key].status = status;
|
||||
emit fileTransferBrokenUnbroken(fileMap[key], !isOffline);
|
||||
emit fileTransferBrokenUnbroken(fileMap[key], isOffline);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user