Skip to content

Commit

Permalink
Bug: 470019 - startService(serviceStartIntent) called Twice
Browse files Browse the repository at this point in the history
Removing unnecessary second call to myContext.startService(serviceStartIntent)

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
  • Loading branch information
jpwsutton committed Sep 1, 2015
1 parent bbd3916 commit bf423fb
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -427,7 +427,6 @@ public IMqttToken connect(MqttConnectOptions options, Object userContext,

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

Expand Down

0 comments on commit bf423fb

Please sign in to comment.