mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 03:06:39 +08:00
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)
|
||||
treetop (~> 1.4.8)
|
||||
memory_profiler (0.9.0)
|
||||
message_bus (1.0.6)
|
||||
message_bus (1.0.7)
|
||||
eventmachine
|
||||
rack (>= 1.1.3)
|
||||
redis
|
||||
|
@ -259,6 +259,11 @@ export default DiscourseController.extend({
|
||||
}
|
||||
});
|
||||
|
||||
this.messageBus.pause();
|
||||
promise.finally(function(){
|
||||
self.messageBus.resume();
|
||||
});
|
||||
|
||||
return promise;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user