1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-25 16:01:38 +03:00

Merge pull request #210 from narayank/master

Fix bad locking in SpdyConnection
This commit is contained in:
Jesse Wilson
2013-06-14 06:50:59 -07:00

View File

@@ -524,7 +524,7 @@ public final class SpdyConnection implements Closeable {
// reads to 'settings'. We synchronize on 'stream' to guard the state change.
// And we need to acquire the 'stream' lock first, since that may block.
synchronized (stream) {
synchronized (this) {
synchronized (SpdyConnection.this) {
stream.receiveSettings(settings);
}
}