Commit 079954a3 authored by yhirano@chromium.org's avatar yhirano@chromium.org

WebSocket should stop resuming when suspended.

WebSocket::resume starts a timer which does the actual resume work when fired.
WebSocket::suspend must stop the timer in case it is called while the
timer is active.

BUG=NONE
R=tyoshino

Review URL: https://codereview.chromium.org/330253002

git-svn-id: svn://svn.chromium.org/blink/trunk@176283 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 82940c19
......@@ -95,6 +95,7 @@ bool WebSocket::EventQueue::isEmpty() const
void WebSocket::EventQueue::suspend()
{
m_resumeTimer.stop();
if (m_state != Active)
return;
......
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