Fixes Tone Repeat

master
FaizHashmiCS22 2 years ago
parent 6a60090f9a
commit 341337e566

@ -377,7 +377,10 @@ class AppProvider extends ChangeNotifier {
} }
if (isQueuePatients.isNotEmpty) { if (isQueuePatients.isNotEmpty) {
isCallingInProgress = true;
log("i am here on line 375"); log("i am here on line 375");
log("isQueuePatients.length 1: ${isQueuePatients.length}");
// for (int i = 0; i < length; i++) { // for (int i = 0; i < length; i++) {
await Future.delayed(Duration(seconds: patientCallConfigurations.concurrentCallDelaySec)).whenComplete(() async { await Future.delayed(Duration(seconds: patientCallConfigurations.concurrentCallDelaySec)).whenComplete(() async {
PatientTicketModel temp = PatientTicketModel(); PatientTicketModel temp = PatientTicketModel();
@ -393,6 +396,8 @@ class AppProvider extends ChangeNotifier {
patientTickets.add(temp); patientTickets.add(temp);
} }
notifyListeners(); notifyListeners();
log("isQueuePatients.length 2: ${isQueuePatients.length}");
if (isQueuePatients.isNotEmpty) { if (isQueuePatients.isNotEmpty) {
await voiceCallPatientTicket(patientTickets.first, "listenAudioPlayerEvents"); await voiceCallPatientTicket(patientTickets.first, "listenAudioPlayerEvents");
updatePatientTicket(patientTickets.first); updatePatientTicket(patientTickets.first);

Loading…
Cancel
Save