FIX: pause processing background messages while saving a post
This commit is contained in:
parent
8b4469a3f0
commit
59a2f622c6
|
@ -213,7 +213,7 @@ GEM
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
memory_profiler (0.9.0)
|
memory_profiler (0.9.0)
|
||||||
message_bus (1.0.6)
|
message_bus (1.0.7)
|
||||||
eventmachine
|
eventmachine
|
||||||
rack (>= 1.1.3)
|
rack (>= 1.1.3)
|
||||||
redis
|
redis
|
||||||
|
|
|
@ -259,6 +259,11 @@ export default DiscourseController.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.messageBus.pause();
|
||||||
|
promise.finally(function(){
|
||||||
|
self.messageBus.resume();
|
||||||
|
});
|
||||||
|
|
||||||
return promise;
|
return promise;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue