diff options
Diffstat (limited to 'net/spdy/spdy_test_util_common.cc')
-rw-r--r-- | net/spdy/spdy_test_util_common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc index ea333c9..ba32a6f 100644 --- a/net/spdy/spdy_test_util_common.cc +++ b/net/spdy/spdy_test_util_common.cc @@ -293,7 +293,8 @@ CompletionCallback StreamReleaserCallback::MakeCallback( void StreamReleaserCallback::OnComplete( SpdyStreamRequest* request, int result) { - request->ReleaseStream()->Cancel(); + if (result == OK) + request->ReleaseStream()->Cancel(); SetResult(result); } |