瀏覽代碼

bugfix: remove discoInitialized promise on teardown

JC Brand 1 月之前
父節點
當前提交
0e65d97a90
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/headless/plugins/disco/index.js

+ 1 - 0
src/headless/plugins/disco/index.js

@@ -58,6 +58,7 @@ converse.plugins.add('converse-disco', {
 
         api.listen.on('beforeTearDown', async () => {
             api.promises.add('streamFeaturesAdded');
+            api.promises.add('discoInitialized');
 
             const { stream_features } = _converse.state;
             if (stream_features) {