Skip to content

Commit

Permalink
Merge pull request #35 from icapps/feature/memory
Browse files Browse the repository at this point in the history
Invalidate the session correctly.
  • Loading branch information
fousa authored Oct 7, 2019
2 parents e3ad251 + 6bac6a6 commit cba7a77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Service/NetworkService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class NetworkService: NSObject {
self?.complete(on: executionQueue, block: { completion(response) })
}
task.resume()
// This causes the delegate to be released correctly.
session.finishTasksAndInvalidate()
return task
}

Expand Down

0 comments on commit cba7a77

Please sign in to comment.