make sure we do not save incomplete debug proxy to the disk

pull/483/head
nightwing 2018-02-07 00:12:05 +04:00
rodzic d9e8100640
commit 2eab9c7957
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -53,6 +53,8 @@ define(function(require, exports, module) {
// try connecting after error, in case there is proxy already launched
if (remote && remote.api.launch) {
return require(["text!" + debugProxy.srcUrl], function(code) {
if (!code)
return console.error("Debug proxy module not found");
fs.writeFile(util.normalizePath(extPath), code, function() {
remote.api.launch(function() {
tryConnect(30);