|
|
@ -201,6 +201,7 @@ class IConsole : ActiveDriver() { |
|
|
|
logger.info("Will try restarting in 10 seconds (disconnection)") |
|
|
|
runBlocking { |
|
|
|
updateBonus() |
|
|
|
output.emit(Stopped) |
|
|
|
delay(timeMillis = 10_000) |
|
|
|
connect(connectionString, output) |
|
|
|
} |
|
|
@ -219,6 +220,7 @@ class IConsole : ActiveDriver() { |
|
|
|
logger.info("Will try restarting in 10 seconds (connection failed)") |
|
|
|
runBlocking { |
|
|
|
updateBonus() |
|
|
|
output.emit(Stopped) |
|
|
|
delay(timeMillis = 10_000) |
|
|
|
connect(connectionString, output) |
|
|
|
} |
|
|
@ -339,6 +341,10 @@ class IConsole : ActiveDriver() { |
|
|
|
bonusTime += lastTime |
|
|
|
bonusCals += lastCals |
|
|
|
bonusMeters += bonusMeters |
|
|
|
|
|
|
|
lastTime = 0 |
|
|
|
lastCals = 0 |
|
|
|
lastMeters = 0 |
|
|
|
} |
|
|
|
|
|
|
|
companion object { |
|
|
|