Commit 1245aaf3 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix deadlock when terminating debugger session.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10479009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11705 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 85e3fba8
......@@ -157,7 +157,9 @@ void DebuggerAgent::OnSessionClosed(DebuggerAgentSession* session) {
ScopedLock with(session_access_);
ASSERT(session == session_);
if (session == session_) {
CloseSession();
session_->Shutdown();
delete session_;
session_ = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment