From ddfeffc912aab5a7fb3df52e70d5938de1f652ed Mon Sep 17 00:00:00 2001 From: ekoby <7406535+ekoby@users.noreply.github.com> Date: Wed, 10 Feb 2021 13:05:06 -0500 Subject: [PATCH] clear sessions if API session expired (#144) --- ziti/src/main/kotlin/org/openziti/impl/ZitiContextImpl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ziti/src/main/kotlin/org/openziti/impl/ZitiContextImpl.kt b/ziti/src/main/kotlin/org/openziti/impl/ZitiContextImpl.kt index 48ed0988..5a4cab89 100644 --- a/ziti/src/main/kotlin/org/openziti/impl/ZitiContextImpl.kt +++ b/ziti/src/main/kotlin/org/openziti/impl/ZitiContextImpl.kt @@ -181,6 +181,8 @@ internal class ZitiContextImpl(internal val id: Identity, enabled: Boolean) : Zi listOf(apiSessionUpdate, serviceUpdate).forEach { it.cancelAndJoin() } + + networkSessions.clear() } }