Skip to content

Commit

Permalink
Check status before clearing thread
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 21, 2015
1 parent f3e7e43 commit 621cec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hex_writer.py
Expand Up @@ -141,8 +141,9 @@ def export_thread(self):
notify("Write aborted!")
sublime.set_timeout(lambda: self.reset_thread(), 500)
else:
status = self.thread.status
self.reset_thread()
if self.thread.status == WRITE_GOOD:
if status == WRITE_GOOD:
sublime.set_timeout(lambda: self.finish_export(), 500)
else:
error("Failed to export to " + self.export_path)
Expand Down

0 comments on commit 621cec2

Please sign in to comment.