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;