Skip to content

Commit

Permalink
fix: unwatch refactoring error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Sep 11, 2024
1 parent 7a457b7 commit 5ac03f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actors/pid.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ func (pid *PID) Watch(cid *PID) {
func (pid *PID) UnWatch(cid *PID) {
for _, item := range cid.watchers().Items() {
w := item.Value
if w.WatcherID.Equals(cid) {
if w.WatcherID.Equals(pid) {
w.Done <- types.Unit{}
pid.watchees().delete(cid.Address())
cid.watchers().Delete(item.Index)
Expand Down

0 comments on commit 5ac03f8

Please sign in to comment.