From b51edca55f0a8afc9feb11e2de3131a5b22968ab Mon Sep 17 00:00:00 2001 From: nelle Date: Sat, 28 Dec 2024 09:15:28 -0700 Subject: [PATCH] e --- .../observer/nelle/nelleObserverBackend/plugins/Routing.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt index 79025d8..b283b37 100644 --- a/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt @@ -19,7 +19,7 @@ import kotlin.time.Duration.Companion.minutes var meowTimedOut = true var beepTimedOut = true -var kaomojiTimedOut = false +var kaomojiTimedOut = true // function to facilitate the timeout for meows fun meowTimer() { @@ -165,7 +165,7 @@ fun Application.configureRouting(client: HttpClient) { call.respondText("beeped with bypass") logger.info { "beeped with bypass" } } else { - if (beepTimedOut) { + if (!beepTimedOut) { call.response.status(HttpStatusCode(423, "Timed Out")) call.respondText("still sleeping...") logger.info { "failed beeped" }