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:
parent
ac120dc7d6
commit
88fb81f921
@ -120,7 +120,7 @@ public class DeviceCommunicationService extends Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
public synchronized int onStartCommand(Intent intent, int flags, int startId) {
|
||||||
|
|
||||||
if (intent == null) {
|
if (intent == null) {
|
||||||
LOG.info("no intent");
|
LOG.info("no intent");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user