Skip to content

Commit

Permalink
Remove unnecessary yield causing BadYieldError (bsc#1154620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Dinca committed Nov 19, 2019
1 parent 5ce510a commit 7214f14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions salt/cli/batch_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ def end_batch(self):
self.event.unsubscribe(pattern, match_type='glob')
del self
gc.collect()
yield

@tornado.gen.coroutine
def schedule_next(self):
Expand Down Expand Up @@ -263,7 +262,6 @@ def run_next(self):
else:
yield self.end_batch()
gc.collect()
yield

def __del__(self):
self.local = None
Expand Down

0 comments on commit 7214f14

Please sign in to comment.