Skip to content

Commit

Permalink
Changed variable name again
Browse files Browse the repository at this point in the history
Signed-off-by: pierantoniomerlino <[email protected]>
  • Loading branch information
pierantoniomerlino committed Jan 15, 2025
1 parent 5e7c293 commit bf5390e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ModemManagerDbusWrapper {
private final DBusConnection dbusConnection;

private final Map<String, NMModemResetHandler> modemHandlers = new HashMap<>();
private final Map<String, MMFailedModemResetTimer> failedModemHandlers = new HashMap<>();
private final Map<String, MMFailedModemResetTimer> failedModemResetTimers = new HashMap<>();

public ModemManagerDbusWrapper(DBusConnection dbusConnection) {
this.dbusConnection = dbusConnection;
Expand Down Expand Up @@ -300,25 +300,25 @@ protected void failedModemResetTimerSchedule(String deviceId, Optional<String> m
MMFailedModemResetTimer resetTimer = new MMFailedModemResetTimer(mmModemDevice, delayMinutes);
resetTimer.schedule();

this.failedModemHandlers.put(deviceId, resetTimer);
this.failedModemResetTimers.put(deviceId, resetTimer);
}

protected void failedModemResetTimerCancel() {
for (String deviceId : this.failedModemHandlers.keySet()) {
for (String deviceId : this.failedModemResetTimers.keySet()) {
failedModemResetTimerCancel(deviceId);
}
this.modemHandlers.clear();
}

protected void failedModemResetTimerCancel(String deviceId) {
if (this.failedModemHandlers.containsKey(deviceId)) {
MMFailedModemResetTimer timer = this.failedModemHandlers.get(deviceId);
if (this.failedModemResetTimers.containsKey(deviceId)) {
MMFailedModemResetTimer timer = this.failedModemResetTimers.get(deviceId);
timer.cancel();
}
}

protected boolean isMMFailedModemResetTimerArmed(String deviceId) {
return this.failedModemHandlers.containsKey(deviceId);
return this.failedModemResetTimers.containsKey(deviceId);
}

private class MMFailedModemResetTimerTask extends NMModemResetTimerTask {
Expand Down

0 comments on commit bf5390e

Please sign in to comment.