Skip to content

Commit

Permalink
fixed unclaim bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rinde committed Sep 29, 2016
1 parent 7548815 commit b397e6b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ public void handleEvent(Event e) {
|| event.trigger == DefaultEvent.NOGO)
&& !getPDPModel().getParcelState(gotoState.getPreviousDestination())
.isPickedUp()) {
communicator.unclaim(gotoState.getPreviousDestination());

final Parcel prev = gotoState.getPreviousDestination();
// only unclaim if it is still assigned to us (it could already have
// been removed, e.g. via a reauction)
if (communicator.getClaimedParcels().contains(prev)) {
communicator.unclaim(prev);
}
}

if (event.trigger == DefaultEvent.GOTO
Expand Down

0 comments on commit b397e6b

Please sign in to comment.