Try to fix protobuf decoding error

This commit is contained in:
Leon Böttger committed 2025-05-03 14:55:05 +02:00
1 parent fd524adca1
commit a810a59b20
1 file changed
+9 -5
+9 -5
View File
@@ -69,11 +69,9 @@ class InboundNearbyConnection: NearbyConnection{
try decryptAndProcessReceivedSecureMessage(smsg)
}
}catch{
lastError=error
log("Deserialization error: \(error) in state \(currentState)")
#if !DEBUG
protocolError()
#endif
lastError = error
log("Deserialization error: \(error) in state \(currentState). Payload: \(frameData.hex)")
//protocolError()
}
}
@@ -555,3 +553,9 @@ public class SaveFilesManager {
}
}
}
extension Data {
var hex: String {
return map { String(format: "%02hhx", $0) }.joined()
}
}