mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Try to fix protobuf decoding error
This commit is contained in:
1 parent
fd524adca1
commit
a810a59b20
1 file changed
+9
-5
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user