From 79bf78086355a089fa08b9f634805f0482182f88 Mon Sep 17 00:00:00 2001 From: Nikolai Onken Date: Wed, 11 Feb 2015 20:18:30 +0000 Subject: [PATCH] Make sure done is called async --- plugins/c9.ide.editors/tabmanager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js index dc94bb1b..a52b9e6c 100644 --- a/plugins/c9.ide.editors/tabmanager.js +++ b/plugins/c9.ide.editors/tabmanager.js @@ -1162,7 +1162,10 @@ define(function(require, module, exports) { }); } else { - done(null, null); + // done has to be called asynchronously + setTimeout(function() { + done(null, null); + }); } return tab;