Author: clebert.suconic(a)jboss.com
Date: 2009-11-22 22:38:18 -0500 (Sun, 22 Nov 2009)
New Revision: 8372
Modified:
branches/ClebertCallback/src/main/org/hornetq/core/server/impl/ServerSessionPacketHandler.java
Log:
Tweaks
Modified:
branches/ClebertCallback/src/main/org/hornetq/core/server/impl/ServerSessionPacketHandler.java
===================================================================
---
branches/ClebertCallback/src/main/org/hornetq/core/server/impl/ServerSessionPacketHandler.java 2009-11-23
03:30:52 UTC (rev 8371)
+++
branches/ClebertCallback/src/main/org/hornetq/core/server/impl/ServerSessionPacketHandler.java 2009-11-23
03:38:18 UTC (rev 8372)
@@ -113,10 +113,7 @@
{
byte type = packet.getType();
- if (sessionContext != null)
- {
- storageManager.setContext(sessionContext);
- }
+ storageManager.setContext(sessionContext);
try
{
@@ -308,10 +305,8 @@
}
finally
{
- if (sessionContext != null)
- {
- storageManager.completeOperations();
- }
+ storageManager.completeOperations();
+ storageManager.clearContext();
}
}
}