Skip to content

Commit

Permalink
bugfix: properly cleaning up ContainerBackgroundSessionProcessor thre…
Browse files Browse the repository at this point in the history
…ads after application is undeployed
  • Loading branch information
lprimak committed Jun 8, 2024
1 parent 7021d83 commit 137ac9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ protected void threadStart() {
* to update lastaccesstime and accessedTime.
*/
protected void threadSessionStart() {
if (sessionThread != null)
if (sessionThread != null || manager == null)
return;
threadSessionDone = false;
String threadName = "ContainerBackgroundSessionProcessor[" + toString() + "]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5946,6 +5946,8 @@ public synchronized void stop(boolean isShutdown)

// Stop ContainerBackgroundProcessor thread
super.threadStop();
// Stop ContainerBackgroundSessionProcessor thread
super.threadSessionStop();

if ((manager != null) && (manager instanceof Lifecycle)) {
if(manager instanceof StandardManager) {
Expand Down

0 comments on commit 137ac9b

Please sign in to comment.