Commit e5075f07 authored by Takeshi Katae's avatar Takeshi Katae
Browse files

Fix a race closing MockSpdyPeer.

It would have crashed if close() was called before readAndWriteFrames()
started.
It causes the getResponseHeadersTimesOut fail when the closeCancelsPings
has been crashed by the MockSpdyPeer's defect.
This patch was referred by below commit:
https://github.com/square/okhttp/commit/d2d8288bb0aded0a0a6fae9e38818744378fbe45



Change-Id: Icffdf83221d6688a588d026eb1b986cd26d81f88
Signed-off-by: default avatarTakeshi Katae <takeshi.katae.xm@kyocera.jp>
parent c4b12fab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment