main #8
1 changed files with 3 additions and 1 deletions
|
@ -14,8 +14,10 @@ import observer.nelle.nelleObserverBackend.logger
|
||||||
import observer.nelle.nelleObserverBackend.makePost
|
import observer.nelle.nelleObserverBackend.makePost
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.concurrent.timerTask
|
import kotlin.concurrent.timerTask
|
||||||
|
import kotlin.time.Duration.Companion.minutes
|
||||||
|
|
||||||
var meowTimedOut = false
|
var meowTimedOut = false
|
||||||
|
var timeoutTime = 33.minutes
|
||||||
|
|
||||||
fun meowTimer() {
|
fun meowTimer() {
|
||||||
meowTimedOut = true
|
meowTimedOut = true
|
||||||
|
@ -25,7 +27,7 @@ fun meowTimer() {
|
||||||
logger.debug { "timeout reset" }
|
logger.debug { "timeout reset" }
|
||||||
},
|
},
|
||||||
// 33 minutes in milliseconds
|
// 33 minutes in milliseconds
|
||||||
1980000,
|
timeoutTime.inWholeMilliseconds,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue