bug fixes
This commit is contained in:
parent
e88090ff17
commit
7b9204a88b
5 changed files with 9 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
from toxcore_enums_and_consts import TOX_FILE_KIND, TOX_FILE_CONTROL
|
||||
from os.path import basename, getsize, exists
|
||||
from os import remove
|
||||
from time import time
|
||||
from time import time, sleep
|
||||
from tox import Tox
|
||||
import settings
|
||||
from PySide import QtCore
|
||||
|
@ -56,6 +56,7 @@ class FileTransfer(QtCore.QObject):
|
|||
|
||||
def cancelled(self):
|
||||
if hasattr(self, '_file'):
|
||||
sleep(0.1)
|
||||
self._file.close()
|
||||
self._state_changed.signal.emit(TOX_FILE_CONTROL['CANCEL'], 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue