More friendly dead lock error message

This commit is contained in:
Trustin Lee 2009-04-23 07:14:27 +00:00
parent bb8f4da30c
commit 4ee657cd0b
2 changed files with 4 additions and 2 deletions

View File

@ -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.");
}
}

View File

@ -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.");
}
}