Ignore suspends for webservice
This commit is contained in:
parent
059ed7a5f0
commit
16423e18ec
1 changed files with 14 additions and 0 deletions
|
@ -49,6 +49,20 @@ class WebService(backgroundthread.KillableThread):
|
|||
except Exception:
|
||||
utils.ERROR()
|
||||
|
||||
def suspend(self):
|
||||
"""
|
||||
Called when thread needs to suspend - let's not do anything and keep
|
||||
webservice up
|
||||
"""
|
||||
self.suspend_reached = True
|
||||
|
||||
def resume(self):
|
||||
"""
|
||||
Called when thread needs to resume - let's not do anything and keep
|
||||
webservice up
|
||||
"""
|
||||
self.suspend_reached = False
|
||||
|
||||
def run(self):
|
||||
''' Called to start the webservice.
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue