fix(extensions): preserve verification callback retries

This commit is contained in:
zarzet
2026-09-04 12:39:03 +07:00
parent 4aba2926f8
commit 7be959e7e9
7 changed files with 186 additions and 60 deletions
+12 -4
View File
@@ -118,10 +118,18 @@ import Gobackend
streamQueue.async {
var err: NSError?
var response: String?
let extensionId = GobackendConsumeExtensionCallbackState(
route.state,
&err
)
let extensionId: String
if route.isSessionGrant {
extensionId = GobackendResolveExtensionCallbackState(
route.state,
&err
)
} else {
extensionId = GobackendConsumeExtensionCallbackState(
route.state,
&err
)
}
guard err == nil, !extensionId.isEmpty else {
NSLog("SpotiFLAC Mobile: Rejected invalid or expired extension callback")
return