Disable light on abandon

This commit is contained in:
Ruben van de Ven 2020-01-22 18:38:33 +01:00
parent e570a2e9f7
commit 74f6ff55a3

View file

@ -306,6 +306,7 @@ class CentralManagement():
a.abandoned_at = datetime.datetime.utcnow() a.abandoned_at = datetime.datetime.utcnow()
self.store.saveAssignment(a) self.store.saveAssignment(a)
self.plotter.park() self.plotter.park()
self.setLight(False)
elif signal.name == 'assignment.submit': elif signal.name == 'assignment.submit':
a = self.currentHit.getLastAssignment() a = self.currentHit.getLastAssignment()
if a.assignment_id != signal.params['assignment_id']: if a.assignment_id != signal.params['assignment_id']: