Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 15c2f92

Browse files
須藤将史須藤将史
authored andcommitted
change finishTasksAndInvalidate()
1 parent 2581464 commit 15c2f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StudyplusSDK/StudyplusAPIRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal struct StudyplusAPIRequest {
7777
let urlSession = URLSession(configuration: URLSessionConfiguration.default)
7878
let task = urlSession.dataTask(with: request) { (data, response, error) in
7979

80-
urlSession.invalidateAndCancel()
80+
urlSession.finishTasksAndInvalidate()
8181

8282
if error == nil && response != nil {
8383
if let httpResponse: HTTPURLResponse = response as? HTTPURLResponse {

0 commit comments

Comments
 (0)