Skip to content

Commit

Permalink
[FIX] web: rpc queries should always be shorted out when the widget i…
Browse files Browse the repository at this point in the history
…s destroyed
  • Loading branch information
KangOl committed Oct 23, 2018
1 parent 3c10897 commit 072fe9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/web/static/src/js/core/service_mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ var ServicesMixin = {
_rpc: function (params, options) {
var query = rpc.buildQuery(params);
var def = this.call('ajax', 'rpc', query.route, query.params, options, this);
if (!def && this.isDestroyed()) {
if (!def || this.isDestroyed()) {
def = $.Deferred();
def.abort = function () {};
}
Expand Down

0 comments on commit 072fe9b

Please sign in to comment.