From 16423e18ec271d5492f56b282d39a6381ecf3b6d Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 6 Apr 2019 12:09:53 +0200 Subject: [PATCH] Ignore suspends for webservice --- resources/lib/webservice.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/resources/lib/webservice.py b/resources/lib/webservice.py index 382fb6ae..7ba7d111 100644 --- a/resources/lib/webservice.py +++ b/resources/lib/webservice.py @@ -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. '''