Skip to content

Commit

Permalink
Bugfix retain on pluginMediaStreamTrack will not allow camera/mic to …
Browse files Browse the repository at this point in the history
…be freed
  • Loading branch information
Jose Pereira committed Feb 3, 2016
1 parent 5d4aaa3 commit 826893a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iosrtcPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class iosrtcPlugin : CDVPlugin {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener()")

let id = command.argumentAtIndex(0) as! String
let pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]
weak var pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]

if pluginMediaStreamTrack == nil {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener() | ERROR: pluginMediaStreamTrack with id=\(id) does not exist")
Expand Down

0 comments on commit 826893a

Please sign in to comment.