FIX: pause processing background messages while saving a post

This commit is contained in:
Sam 2015-03-16 18:27:18 +11:00
parent 8b4469a3f0
commit 59a2f622c6
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -259,6 +259,11 @@ export default DiscourseController.extend({
} }
}); });
this.messageBus.pause();
promise.finally(function(){
self.messageBus.resume();
});
return promise; return promise;
}, },