set status to closeif foodoord is shutting down
This commit is contained in:
parent
f34461666e
commit
f20e1158ed
4
foodoord
4
foodoord
@ -49,6 +49,10 @@ if __name__ == "__main__":
|
|||||||
def signal_handler(signal, frame):
|
def signal_handler(signal, frame):
|
||||||
listener.deactivate()
|
listener.deactivate()
|
||||||
os.remove("/var/run/foodoord.pipe")
|
os.remove("/var/run/foodoord.pipe")
|
||||||
|
try:
|
||||||
|
urllib2.urlopen(url+'&status=closed', timeout=2)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def set_led(color):
|
def set_led(color):
|
||||||
|
Loading…
Reference in New Issue
Block a user