mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 06:15:59 +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)
|
try decryptAndProcessReceivedSecureMessage(smsg)
|
||||||
}
|
}
|
||||||
}catch{
|
}catch{
|
||||||
lastError=error
|
lastError = error
|
||||||
log("Deserialization error: \(error) in state \(currentState)")
|
log("Deserialization error: \(error) in state \(currentState). Payload: \(frameData.hex)")
|
||||||
#if !DEBUG
|
//protocolError()
|
||||||
protocolError()
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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