1
0
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:
Anthony Bilinski 2019-05-09 21:42:47 -07:00
parent 1628d495d1
commit 6522988e8c
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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);
}
}