Merge pull request #67 from nicoddemus/issue-66-clean-shutdown

Cleanly shutdown workers if session should be interrupted
This commit is contained in:
Ronny Pfannschmidt
2016-06-21 18:12:17 +02:00
committed by GitHub

View File

@@ -535,6 +535,7 @@ class DSession:
while not self.session_finished:
self.loop_once()
if self.shouldstop:
self.triggershutdown()
raise Interrupted(str(self.shouldstop))
return True