261013_03_ENH: bfcache CTI 재로그인 확인용 임시 로그 제거

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-13 16:53:25 +09:00
parent 59c9238632
commit 81dd5165f3
2 changed files with 2 additions and 27 deletions

View File

@@ -769,12 +769,8 @@ const connectAndLogin = (params: CtiLoginParams) => {
const suspendForPageHide = () => {
if (!currentLoginParams) return;
stopReconnectLoop();
if (currentAgentLoginId && connectionState === "open") {
if (isCallInProgress()) {
console.log("[CTI][TEMP_LOG] pagehide logout skipped, call is in progress"); // TEMP_CTI_LOG
} else {
send({ ZCommand: "Logout", AgentLoginID: currentAgentLoginId });
}
if (currentAgentLoginId && connectionState === "open" && !isCallInProgress()) {
send({ ZCommand: "Logout", AgentLoginID: currentAgentLoginId });
}
teardownSocket();
};
@@ -784,7 +780,6 @@ const resumeFromPageShow = () => {
const params = currentLoginParams;
if (!params) return;
if (connectionState === "open" || connectionState === "connecting") return;
console.log("[CTI][TEMP_LOG] pageshow resume, reconnecting"); // TEMP_CTI_LOG
connectAndLogin(params);
};