More friendly dead lock error message

This commit is contained in:
Trustin Lee 2009-04-23 06:56:41 +00:00
parent c4ba12e8d4
commit bb8f4da30c
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ 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.");
"sudden performance drop. Use addListener() instead.");
}
}

View File

@ -308,7 +308,7 @@ 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.");
"sudden performance drop. Use addListener() instead.");
}
}