1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-02-03 21:47:32 +01:00

Make onStartCommand() synchronized, to be sure

(or does Android take care of not calling this concurrently?)
This commit is contained in:
cpfeiffer 2015-10-22 00:52:45 +02:00
parent ac120dc7d6
commit 88fb81f921

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");