daemon: Remove __del__() methods.
This simplifies Python garbage collection.
This commit is contained in:
parent
ef85995cc6
commit
6f77086540
2 changed files with 0 additions and 7 deletions
|
@ -78,9 +78,6 @@ class EventLoop(object):
|
|||
self.running = False
|
||||
self.start = None
|
||||
|
||||
def __del__(self):
|
||||
self.stop()
|
||||
|
||||
def __run_events(self):
|
||||
schedule = False
|
||||
while True:
|
||||
|
|
|
@ -120,10 +120,6 @@ class Session(object):
|
|||
"non-persistent session %s" % s.sessionid
|
||||
s.shutdown()
|
||||
|
||||
def __del__(self):
|
||||
# note: there is no guarantee this will ever run
|
||||
self.shutdown()
|
||||
|
||||
def shutdown(self):
|
||||
''' Shut down all emulation objects and remove the session directory.
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue