From f97f37ad727adb69ace9efaeb9fdcbbb16c28cd2 Mon Sep 17 00:00:00 2001 From: Yichen Wang <18348405+Aiee@users.noreply.github.com> Date: Thu, 6 Jan 2022 19:47:45 +0800 Subject: [PATCH] Fix removeSession() (#3651) Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com> --- src/graph/session/GraphSessionManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graph/session/GraphSessionManager.cpp b/src/graph/session/GraphSessionManager.cpp index a7ebdccbbc6..f7fda2cd93a 100644 --- a/src/graph/session/GraphSessionManager.cpp +++ b/src/graph/session/GraphSessionManager.cpp @@ -148,6 +148,7 @@ void GraphSessionManager::removeSession(SessionID id) { if (!resp.ok()) { // it will delete by reclaim LOG(ERROR) << "Remove session `" << id << "' failed: " << resp.status(); + return; } activeSessions_.erase(iter); }