Skip to content

Commit

Permalink
[private-bamoe-issues#1326] Avoid duplicate timer execution with long…
Browse files Browse the repository at this point in the history
… running timers and async nodes
  • Loading branch information
martinweiler committed Dec 6, 2023
1 parent 80efbc1 commit e027acf
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,25 @@ public String getUuid() {
return null;
}

@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (int) (this.getId() ^ (this.getId() >>> 32));
return result;
}

@Override
public boolean equals(Object obj) {
if ( this == obj ) return true;
if ( obj == null ) return false;
if ( getClass() != obj.getClass() ) return false;
final DefaultJobHandle other = (DefaultJobHandle) obj;
if (this.getId() != other.getId())
return false;
return true;
}

}

public static class DisposableCommandService implements InternalLocalRunner {
Expand Down

0 comments on commit e027acf

Please sign in to comment.