Don't hold Context variables for the lifetime of scheduled calls

Fixes #1568
This commit is contained in:
altrisi committed 2022-10-15 12:34:55 +02:00
1 parent 1a6febc6c0
commit 8e38619f61
2 files changed
+2 -2

No files matched your search

@@ -157,7 +157,7 @@ public class CarpetEventServer
{
// ignoring target as we will be always calling self
super(context.host.getName(), null, function, args);
this.ctx = context;
this.ctx = context.duplicate();
this.dueTime = dueTime;
}