Update MyCookieManager.swift

return false if cookie is not created
This commit is contained in:
Lorenzo Pichilli 2023-11-10 14:04:34 +01:00 committed by GitHub
parent 228030cf19
commit 600bceafc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ public class MyCookieManager: ChannelDelegate {
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
result(true)
})
} else {
result(false)
}
}