Make onStartCommand() synchronized, to be sure

(or does Android take care of not calling this concurrently?)
here
cpfeiffer 2015-10-22 00:52:45 +02:00
parent ac120dc7d6
commit 88fb81f921
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class DeviceCommunicationService extends Service {
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
public synchronized int onStartCommand(Intent intent, int flags, int startId) {
if (intent == null) {
LOG.info("no intent");