don't use socket to report start/stop

This commit is contained in:
Luke Pulverenti 2015-03-08 16:01:56 -04:00
parent 5fd8da389b
commit 2ba4c49630

View File

@ -3223,18 +3223,6 @@
throw new Error("null options");
}
if (self.isWebSocketOpen()) {
var deferred = DeferredBuilder.Deferred();
var msg = JSON.stringify(options);
self.sendWebSocketMessage("ReportPlaybackStart", msg);
deferred.resolveWith(null, []);
return deferred.promise();
}
var url = self.getUrl("Sessions/Playing");
return self.ajax({
@ -3289,18 +3277,6 @@
throw new Error("null options");
}
if (self.isWebSocketOpen()) {
var deferred = DeferredBuilder.Deferred();
var msg = JSON.stringify(options);
self.sendWebSocketMessage("ReportPlaybackStopped", msg);
deferred.resolveWith(null, []);
return deferred.promise();
}
var url = self.getUrl("Sessions/Playing/Stopped");
return self.ajax({