Add missing synchronized
This commit is contained in:
parent
0e74b089c2
commit
ecea558e03
@ -1559,6 +1559,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
public final void run() {
|
public final void run() {
|
||||||
try {
|
try {
|
||||||
runTask();
|
runTask();
|
||||||
|
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (t instanceof ChannelException) {
|
if (t instanceof ChannelException) {
|
||||||
cause = (ChannelException) t;
|
cause = (ChannelException) t;
|
||||||
@ -1577,7 +1578,9 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
|
|
||||||
void await() {
|
void await() {
|
||||||
try {
|
try {
|
||||||
|
synchronized (ChannelPipelineModificationRunnable.this) {
|
||||||
wait();
|
wait();
|
||||||
|
}
|
||||||
if (cause != null) {
|
if (cause != null) {
|
||||||
throw cause;
|
throw cause;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user