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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user