Fix StreamingDrmSessionmanager.

Use locally bound variable instead of class variable.
This commit is contained in:
Oliver Woodman 2014-09-23 11:14:16 +01:00
parent 1ed048dba8
commit f82a331728

View File

@ -284,13 +284,13 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
} }
} }
private void onError(Exception e) { private void onError(final Exception e) {
lastException = e; lastException = e;
if (eventHandler != null && eventListener != null) { if (eventHandler != null && eventListener != null) {
eventHandler.post(new Runnable() { eventHandler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
eventListener.onDrmSessionManagerError(lastException); eventListener.onDrmSessionManagerError(e);
} }
}); });
} }