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); }