mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 13:55:58 +00:00
Better error message for failed signature check, throw error on canceled file transfer
This commit is contained in:
1 parent
f18649b959
commit
ddd9a32023
4 files changed
+227
-7
No files matched your search
@@ -101,6 +101,8 @@ class InboundNearbyConnection: NearbyConnection {
|
||||
|
||||
override func processTransferSetupFrame(_ frame: Sharing_Nearby_Frame) throws {
|
||||
if frame.hasV1 && frame.v1.hasType, case .cancel = frame.v1.type {
|
||||
self.lastError = NearbyError.canceled(reason: .userCanceled)
|
||||
self.cancelled = true
|
||||
log("[InboundNearbyConnection] Transfer canceled")
|
||||
try sendDisconnectionAndDisconnect()
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user