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.running = False
|
||||||
self.start = None
|
self.start = None
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
self.stop()
|
|
||||||
|
|
||||||
def __run_events(self):
|
def __run_events(self):
|
||||||
schedule = False
|
schedule = False
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -120,10 +120,6 @@ class Session(object):
|
||||||
"non-persistent session %s" % s.sessionid
|
"non-persistent session %s" % s.sessionid
|
||||||
s.shutdown()
|
s.shutdown()
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
# note: there is no guarantee this will ever run
|
|
||||||
self.shutdown()
|
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
''' Shut down all emulation objects and remove the session directory.
|
''' Shut down all emulation objects and remove the session directory.
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue