Commit dcddeb34 authored by Dan Pascu's avatar Dan Pascu

Fixed bug with retrying file transfers after restarting blink

parent 02d3ece4
......@@ -3623,7 +3623,7 @@ class BlinkFileTransfer(object):
# Reinitialize to retry
file_selector = FileSelector.for_file(self.filename)
stat = os.fstat(file_selector.fd.fileno())
if stat.st_mtime == self._stat.st_mtime:
if self._stat is not None and stat.st_mtime == self._stat.st_mtime:
file_selector.hash = self.file_selector.hash
self.file_selector = file_selector
self._stat = stat
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment