diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java index b11634c6c9..b58a0d48a4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java @@ -254,11 +254,11 @@ public class LoopPlugin extends PluginBase { return isDisconnected; } - public void invoke(String initiator, boolean allowNotification){ + public synchronized void invoke(String initiator, boolean allowNotification){ invoke(initiator, allowNotification, false); } - public void invoke(String initiator, boolean allowNotification, boolean tempBasalFallback) { + public synchronized void invoke(String initiator, boolean allowNotification, boolean tempBasalFallback) { try { if (Config.logFunctionCalls) log.debug("invoke from " + initiator);