Skip to content

Commit bf423fb

Browse files
committed
Bug: 470019 - startService(serviceStartIntent) called Twice
Removing unnecessary second call to myContext.startService(serviceStartIntent) Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent bbd3916 commit bf423fb

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service

org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/MqttAndroidClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ public IMqttToken connect(MqttConnectOptions options, Object userContext,
427427

428428
// We bind with BIND_SERVICE_FLAG (0), leaving us the manage the lifecycle
429429
// until the last time it is stopped by a call to stopService()
430-
myContext.startService(serviceStartIntent);
431430
myContext.bindService(serviceStartIntent, serviceConnection,
432431
Context.BIND_AUTO_CREATE);
433432

0 commit comments

Comments
 (0)