mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
AndroidGCS: Make sure the telemetry sevice checks there is a telemetry task AND it's connected before sending the OPConnected service. Otherwise the objMngr is undefined.
This commit is contained in:
parent
05fd56ede5
commit
e68603ac6a
@ -258,7 +258,7 @@ public class OPTelemetryService extends Service {
|
||||
mServiceHandler.sendMessage(msg);
|
||||
}
|
||||
public boolean isConnected() {
|
||||
return activeTelem != null;
|
||||
return (activeTelem != null) && (telemTask != null) && (telemTask.getConnected());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user