Skip to content

Commit 669571a

Browse files
committed
Fixing ChatSession.reset
1 parent ceab3dd commit 669571a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chat-sdk/src/main/java/com/amazon/connect/chat/sdk/ChatSession.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ class ChatSessionImpl @Inject constructor(private val chatService: ChatService)
258258
}
259259

260260
override suspend fun reset(): Result<Boolean> {
261+
cleanup()
262+
isChatSessionActive = false
261263
return withContext(Dispatchers.IO) {
262-
cleanup()
263-
isChatSessionActive = false
264264
chatService.reset()
265265
}
266266
}

0 commit comments

Comments
 (0)