notify -> notifyAll
This commit is contained in:
parent
f2e86ae63c
commit
62462b4f83
|
@ -4,7 +4,7 @@ import android.content.Context
|
|||
import android.os.SystemClock
|
||||
import androidx.work.WorkerParameters
|
||||
import androidx.work.workDataOf
|
||||
import info.nightscout.core.utils.notify
|
||||
import info.nightscout.core.utils.notifyAll
|
||||
import info.nightscout.core.utils.receivers.DataWorkerStorage
|
||||
import info.nightscout.core.utils.worker.LoggingWorker
|
||||
import info.nightscout.database.impl.AppRepository
|
||||
|
@ -180,7 +180,7 @@ class NSClientAddAckWorker(
|
|||
}
|
||||
|
||||
}
|
||||
ack.originalObject?.let { synchronized(it) { it.notify() } }
|
||||
ack.originalObject?.let { synchronized(it) { it.notifyAll() } }
|
||||
return ret
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ package info.nightscout.plugins.sync.nsclient.workers
|
|||
import android.content.Context
|
||||
import androidx.work.WorkerParameters
|
||||
import androidx.work.workDataOf
|
||||
import info.nightscout.core.utils.notify
|
||||
import info.nightscout.core.utils.notifyAll
|
||||
import info.nightscout.core.utils.receivers.DataWorkerStorage
|
||||
import info.nightscout.core.utils.worker.LoggingWorker
|
||||
import info.nightscout.database.impl.AppRepository
|
||||
|
@ -128,7 +128,7 @@ class NSClientUpdateRemoveAckWorker(
|
|||
ret = Result.success(workDataOf("ProcessedData" to pair.toString()))
|
||||
}
|
||||
}
|
||||
ack.originalObject?.let { synchronized(it) { it.notify() } }
|
||||
ack.originalObject?.let { synchronized(it) { it.notifyAll() } }
|
||||
return ret
|
||||
}
|
||||
}
|
|
@ -81,7 +81,7 @@ public class SerialIOThread extends Thread {
|
|||
message.setReceived(true);
|
||||
message.handleMessage(extractedBuff);
|
||||
synchronized (message) {
|
||||
message.notify();
|
||||
message.notifyAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -343,7 +343,7 @@ public class DanaRExecutionService extends AbstractDanaRExecutionService {
|
|||
aapsLogger.debug(LTag.PUMP, "Bolus amount in history too old: " + dateUtil.dateAndTimeString(danaPump.getLastBolusTime()));
|
||||
}
|
||||
synchronized (o) {
|
||||
o.notify();
|
||||
o.notifyAll();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ import androidx.core.app.ActivityCompat
|
|||
import dagger.android.HasAndroidInjector
|
||||
import info.nightscout.androidaps.danars.encryption.BleEncryption
|
||||
import info.nightscout.core.ui.toast.ToastUtils
|
||||
import info.nightscout.core.utils.notify
|
||||
import info.nightscout.core.utils.notifyAll
|
||||
import info.nightscout.core.utils.waitMillis
|
||||
import info.nightscout.interfaces.notifications.Notification
|
||||
import info.nightscout.interfaces.pump.PumpSync
|
||||
|
@ -863,7 +863,7 @@ class BLEComm @Inject internal constructor(
|
|||
message.setReceived()
|
||||
synchronized(message) {
|
||||
// notify to sendMessage
|
||||
message.notify()
|
||||
message.notifyAll()
|
||||
}
|
||||
} else aapsLogger.error("Unknown message received " + DanaRSPacket.toHexString(decryptedBuffer))
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ import android.os.SystemClock
|
|||
import androidx.core.app.ActivityCompat
|
||||
import dagger.android.HasAndroidInjector
|
||||
import info.nightscout.core.ui.toast.ToastUtils
|
||||
import info.nightscout.core.utils.notify
|
||||
import info.nightscout.core.utils.notifyAll
|
||||
import info.nightscout.core.utils.waitMillis
|
||||
import info.nightscout.interfaces.ui.UiInteraction
|
||||
import info.nightscout.pump.diaconn.DiaconnG8Pump
|
||||
|
@ -406,7 +406,7 @@ class BLECommonService @Inject internal constructor(
|
|||
message!!.setReceived()
|
||||
synchronized(message!!) {
|
||||
// notify to sendMessage
|
||||
message!!.notify()
|
||||
message!!.notifyAll()
|
||||
}
|
||||
} else aapsLogger.error("Unknown message received " + DiaconnG8Packet.toHex(data))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue