Skip to content

Commit

Permalink
Fix task response when recording and using delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
armstrongnate committed Apr 4, 2016
1 parent f84aa7f commit 411583e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DVR/SessionDataTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ class SessionDataTask: NSURLSessionDataTask {
}

// Create interaction
let interaction = Interaction(request: this.request, response: response, responseData: data)
this.session.finishTask(this, interaction: interaction, playback: false)
this.interaction = Interaction(request: this.request, response: response, responseData: data)
this.session.finishTask(this, interaction: this.interaction!, playback: false)
}
task.resume()
}
Expand Down

0 comments on commit 411583e

Please sign in to comment.