# “草稿正在另一个窗口中编辑”有问题

**URL:** https://meta.discourse.org/t/sth-wrong-with-draft-is-being-edited-in-another-window/151430
**Category:** Support
**Created:** [2020年五月14日 03:37 UTC](https://meta.discourse.org/t/sth-wrong-with-draft-is-being-edited-in-another-window/151430 "2020-05-14T03:37:46Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2020年五月14日 05:39 UTC](https://meta.discourse.org/t/sth-wrong-with-draft-is-being-edited-in-another-window/151430/6 "2020-05-14T05:39:05Z")

</div>

你能看看这个提交是否有帮助吗？

> <https://github.com/discourse/discourse/commit/ce4b5b56e5fbf53438592b865c733759ebfa95c3>
>
> Previously if saving a draft took longer than 2 seconds there
> could be condition…s where drafts could be saved concurrently.
> This meant the composer could race with itself and raise conflicts.
> 
> This is likely to happen on bad internet connections or where
> latency is really high.
> 
> Additionally a throttle was added so drafts save unconditionally
> every 15 seconds.
> 
> Save draft in the model now properly and consistently returns a
> promise.

我们遇到过一个情况，草稿可能会“并发”保存，也就是说编辑器可能正在保存草稿的过程中，又触发了另一次草稿保存。这种情况仅在网络延迟较高时发生，但我认为你很可能遇到了这个问题，@xiasummer。

无法保证这一定能修复问题，因为这部分代码非常复杂，但在我的所有本地测试中，它运行得要好得多。

---

_[View the full topic](https://meta.discourse.org/t/sth-wrong-with-draft-is-being-edited-in-another-window/151430)._
