Author: ygrego Date: 2015-04-15 08:21:11 +0000 (Wed, 15 Apr 2015) New Revision: 1179 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1179 Log: The method "_abortIfNecessary" is called in method "findProgrammesFromStream", "setQuery", "addChannelConstraint" and "addRatingConstraint". Modified: oipf/js/impl/model/MetadataSearch.js Modified: oipf/js/impl/model/MetadataSearch.js =================================================================== --- oipf/js/impl/model/MetadataSearch.js 2015-04-15 08:07:12 UTC (rev 1178) +++ oipf/js/impl/model/MetadataSearch.js 2015-04-15 08:21:11 UTC (rev 1179) @@ -188,6 +188,8 @@ ("This function cannot be called with these arguments."); } + this._abortIfNecessary(); + console.log("[INFO]: findProgrammesFromStream [IN]"); this.addChannelConstraint(channel); this._currentQuery = new Query("startTime", 0, startTime, count); @@ -223,6 +225,8 @@ ("This function cannot be called with this argument."); } + + this._abortIfNecessary(); this._currentQuery = query; }, @@ -263,6 +267,8 @@ } + this._abortIfNecessary(); + if (this._constraints.channels) { this._constraints.channels = this._constraints.channels.concat(channels); @@ -287,6 +293,8 @@ * rating scheme SHALL be cleared. */ addRatingConstraint: function(scheme, threshold) { + this._abortIfNecessary(); + if (scheme && threshold) { var rating = { scheme: scheme,