Browse Source

added additional routing packet error handler

pull/516/head
Dan Ditomaso 1 year ago
parent
commit
ad366e6bab
  1. 5
      src/core/subscriptions.ts

5
src/core/subscriptions.ts

@ -117,6 +117,11 @@ export const subscribeAll = (
device.setNodeError(routingPacket.from, Protobuf.Mesh.Routing_Error[routingPacket?.data?.variant?.value]);
device.setDialogOpen("refreshKeys", true);
break;
case Protobuf.Mesh.Routing_Error.PKI_UNKNOWN_PUBKEY:
console.error(`Routing Error: ${routingPacket.data.variant.value}`);
device.setNodeError(routingPacket.from, Protobuf.Mesh.Routing_Error[routingPacket?.data?.variant?.value]);
device.setDialogOpen("refreshKeys", true);
break;
default: {
break;
}

Loading…
Cancel
Save