From 584298e3bd6c38e867aafc490560a2af3fbab7e1 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 27 Jan 2026 20:19:25 -0800 Subject: [PATCH] Fix terminate due to inactivity --- olm/connect.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/olm/connect.go b/olm/connect.go index 575a8fd..94a219e 100644 --- a/olm/connect.go +++ b/olm/connect.go @@ -255,6 +255,12 @@ func (o *Olm) handleTerminate(msg websocket.WSMessage) { logger.Error("Error unmarshaling terminate error data: %v", err) } else { logger.Info("Terminate reason (code: %s): %s", errorData.Code, errorData.Message) + + if errorData.Code == "TERMINATED_INACTIVITY" { + logger.Info("Ignoring...") + return + } + // Set the olm error in the API server so it can be exposed via status o.apiServer.SetOlmError(errorData.Code, errorData.Message) }