mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: pause processing background messages while saving a post
This commit is contained in:
parent
8b4469a3f0
commit
59a2f622c6
2 changed files with 6 additions and 1 deletions
|
@ -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 a new issue