ARTEMIS-1356 Fixing assertion logic

This commit is contained in:
Clebert Suconic 2017-08-23 09:05:36 -04:00
parent d6aed25288
commit aa2f0b9f17
1 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ public class ServerSessionPacketHandler implements ChannelHandler {
}
private static void onStartMessagePacketHandler() {
assert inHandler.get() != null : "recursion on packet handling is not supported";
assert inHandler.get() == null : "recursion on packet handling is not supported";
inHandler.set(DUMMY);
}
@ -243,7 +243,7 @@ public class ServerSessionPacketHandler implements ChannelHandler {
}
private static void onExitMessagePacketHandler() {
assert inHandler.get() == null : "marker not set";
assert inHandler.get() != null : "marker not set";
inHandler.set(null);
}