Skip to content
Browse files

ETS: fix recently introduced bug wrt. table deletion after failed tra…

…nsfer.
  • Loading branch information...
1 parent a83287f commit 85e68b029ad8776e5749a00250b6745837328a34 @eriksoe eriksoe committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/erjang/m/ets/ETable.java
View
4 src/main/java/erjang/m/ets/ETable.java
@@ -194,11 +194,13 @@ public void transfer_ownership_to(EInternalPID new_owner, EObject transfer_data)
former_owner,
transfer_data);
- //TODO: Remove exit hook from old process
this.owner = new WeakReference<EProc>(new_owner_task);
new_owner_task.add_exit_hook(this);
+ former_owner.remove_exit_hook(this);
new_owner.send(former_owner, msg);
+ } else {
+ delete();
}
}

0 comments on commit 85e68b0

Please sign in to comment.
Something went wrong with that request. Please try again.