Skip to content

Commit

Permalink
Don't forget to absolve when the other side pleads
Browse files Browse the repository at this point in the history
  • Loading branch information
sgwilym committed Feb 29, 2024
1 parent 7a56c55 commit fcddf16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/wgps/wgps_messenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,14 @@ export class WgpsMessenger<
);
}
case MSG_CONTROL_PLEAD: {
this.intersectionChannel.plead(message.target);
const absolved = this.intersectionChannel.plead(message.target);

this.encoder.encode({
kind: MSG_CONTROL_ABSOLVE,
channel: message.channel,
amount: absolved,
});

break;
}
case MSG_CONTROL_ANNOUNCE_DROPPING: {
Expand Down

0 comments on commit fcddf16

Please sign in to comment.