Skip to content

Commit

Permalink
Fix server not running function in rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 17, 2025
1 parent ada8a1a commit cae5eb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/networker/networker/lib/src/plugin/rpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ final class RpcServerNetworkerPipe extends RpcNetworkerPipe {
if (!(filter?.call(newPacket, receiver) ?? true)) {
return;
}
if (newPacket.channel == kAuthorityChannel ||
newPacket.channel == kAnyChannel) {
if (receiver == kAuthorityChannel || receiver == kAnyChannel) {
runFunction(newPacket);
return;
}
sendMessage(newPacket);
if (receiver != kAuthorityChannel) {
sendMessage(newPacket);
}
}
}

Expand Down

0 comments on commit cae5eb2

Please sign in to comment.