Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit f145e34

Browse files
committed
Merge pull request #165 from panghy/master
Fix JERSEY-2865
2 parents fab1516 + 535d3f0 commit f145e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core-server/src/main/java/org/glassfish/jersey/server/ChunkedOutput.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public Void call() throws IOException {
193193
boolean shouldClose;
194194
T t;
195195

196-
synchronized (this) {
196+
synchronized (ChunkedOutput.this) {
197197
if (flushing) {
198198
// if another thread is already flushing the queue, we don't have to do anything
199199
return null;
@@ -254,7 +254,7 @@ public Void call() throws IOException {
254254
}
255255
t = queue.poll();
256256
if (t == null) {
257-
synchronized (this) {
257+
synchronized (ChunkedOutput.this) {
258258
// queue seems empty
259259
// check again in the synchronized block before clearing the flushing flag
260260
// first remember the closed flag (this has to be before polling the queue,

0 commit comments

Comments
 (0)