prevent crash in getSpeeds() if currentControls is None
This commit is contained in:
parent
fe869b0faa
commit
41457534fe
|
|
@ -158,7 +158,9 @@ class ControlManager:
|
|||
#self.monitorTask.remove()
|
||||
|
||||
def getSpeeds(self):
|
||||
return self.currentControls.getSpeeds()
|
||||
if self.currentControls:
|
||||
return self.currentControls.getSpeeds()
|
||||
return None
|
||||
|
||||
def getIsAirborne(self):
|
||||
if self.currentControls:
|
||||
|
|
|
|||
Loading…
Reference in New Issue