More friendly dead lock error message
This commit is contained in:
parent
bb8f4da30c
commit
4ee657cd0b
@ -242,7 +242,8 @@ public class DefaultChannelFuture implements ChannelFuture {
|
||||
if (IoWorkerRunnable.IN_IO_THREAD.get()) {
|
||||
throw new IllegalStateException(
|
||||
"await*() in I/O thread causes a dead lock or " +
|
||||
"sudden performance drop. Use addListener() instead.");
|
||||
"sudden performance drop. Use addListener() instead or " +
|
||||
"call await*() from a different thread.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -308,7 +308,8 @@ public class DefaultChannelGroupFuture implements ChannelGroupFuture {
|
||||
if (IoWorkerRunnable.IN_IO_THREAD.get()) {
|
||||
throw new IllegalStateException(
|
||||
"await*() in I/O thread causes a dead lock or " +
|
||||
"sudden performance drop. Use addListener() instead.");
|
||||
"sudden performance drop. Use addListener() instead or " +
|
||||
"call await*() from a different thread.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user