mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Switch self.event.destroy()
with del(self.event)
which should be the same.
This commit is contained in:
parent
74156cff72
commit
0255c8d583
@ -1001,7 +1001,8 @@ class LocalClient(object):
|
||||
# When running tests, if self.events is not destroyed, we leak 2
|
||||
# threads per test case which uses self.client
|
||||
if hasattr(self, 'event'):
|
||||
self.event.destroy()
|
||||
# The call bellow will take care of calling 'self.event.destroy()'
|
||||
del(self.event)
|
||||
|
||||
|
||||
class FunctionWrapper(dict):
|
||||
|
Loading…
Reference in New Issue
Block a user