Skip to content

Commit

Permalink
Using default session operation queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Sep 25, 2014
1 parent c0af5a7 commit b2daed7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ public class Manager {

private let delegate: SessionDelegate

let operationQueue: NSOperationQueue = NSOperationQueue()
let queue = dispatch_queue_create(nil, DISPATCH_QUEUE_SERIAL)

/// The underlying session.
Expand All @@ -281,7 +280,7 @@ public class Manager {
*/
required public init(configuration: NSURLSessionConfiguration? = nil) {
self.delegate = SessionDelegate()
self.session = NSURLSession(configuration: configuration, delegate: delegate, delegateQueue: operationQueue)
self.session = NSURLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
}

deinit {
Expand Down

0 comments on commit b2daed7

Please sign in to comment.