浏览代码

Add an extra catch as workaround for possible cause of ARM crash.

Adam Ierymenko 6 年之前
父节点
当前提交
a6dff8ff2f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      node/IncomingPacket.cpp

+ 3 - 0
node/IncomingPacket.cpp

@@ -113,6 +113,9 @@ bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,void *tPtr)
 			RR->sw->requestWhois(tPtr,RR->node->now(),sourceAddress);
 			RR->sw->requestWhois(tPtr,RR->node->now(),sourceAddress);
 			return false;
 			return false;
 		}
 		}
+	} catch (int ztExcCode) {
+		RR->t->incomingPacketInvalid(tPtr,_path,packetId(),sourceAddress,hops(),verb(),"unexpected exception in tryDecode()");
+		return true;
 	} catch ( ... ) {
 	} catch ( ... ) {
 		RR->t->incomingPacketInvalid(tPtr,_path,packetId(),sourceAddress,hops(),verb(),"unexpected exception in tryDecode()");
 		RR->t->incomingPacketInvalid(tPtr,_path,packetId(),sourceAddress,hops(),verb(),"unexpected exception in tryDecode()");
 		return true;
 		return true;