Fix killing greenlets gevent exception

This commit is contained in:
shortcutme 2020-06-30 17:04:47 +02:00
parent ddbd5c7b19
commit 6bd49e8aff
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 15 additions and 5 deletions

View file

@ -20,5 +20,5 @@ class GreenletManager:
def stopGreenlets(self, reason="Stopping all greenlets"):
num = len(self.greenlets)
gevent.killall(list(self.greenlets), Debug.Notify(reason), block=False)
gevent.killall(list(self.greenlets), Debug.createNotifyType(reason), block=False)
return num