Skip to content

Commit

Permalink
Minor tidy up
Browse files Browse the repository at this point in the history
Removed not needed comment and replaced code segment with method call.
  • Loading branch information
markaboulton committed Jan 18, 2019
1 parent 8707176 commit a8af7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion dlg/apps/bash_shell_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def cancel(self):
BarrierAppDROP.cancel(self)
try:
os.killpg(os.getpgid(self.proc.pid), signal.SIGTERM)
#self.proc.terminate()
except:
logger.exception("Error while terminating process %r", self.proc)

Expand Down
6 changes: 2 additions & 4 deletions dlg/drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,14 +876,12 @@ def setError(self):
'''
Moves this DROP to the ERROR state.
'''
# Close our writing IO instance.
# If written externally, self._wio will have remained None
if self._wio:
self._wio.close()

if self.status == DROPStates.CANCELLED:
return

self._closeWriters()

logger.info("Moving %r to ERROR", self)
self.status = DROPStates.ERROR

Expand Down

0 comments on commit a8af7e7

Please sign in to comment.