Browse files

Move setting q2Thread to null to avoid NPE on shutdown

  • Loading branch information...
1 parent 7ef2527 commit 528d75a8ea356c7c462e6f59d87808b4cb3f3853 @marksalter marksalter committed Apr 21, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/q2/src/org/jpos/q2/Q2.java
View
2 modules/q2/src/org/jpos/q2/Q2.java
@@ -188,13 +188,13 @@ public Object run() {
relax ();
}
}
- q2Thread = null;
undeploy ();
try {
server.unregisterMBean (loaderName);
} catch (InstanceNotFoundException e) {
log.error (e);
}
+ q2Thread = null;
if (exit && !shuttingDown)
System.exit (0);
}

0 comments on commit 528d75a

Please sign in to comment.