log message after connecting in case of disconnect

This commit is contained in:
Jonathan Rainville 2018-10-03 13:51:03 -04:00 committed by Pascal Precht
parent 777b0ff1e5
commit feea4c27fc
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 0 deletions

View File

@ -52,9 +52,11 @@ const parseResponse = function (ipc, resBody) {
if (ipc.connected && !ipc.connecting) {
ipc.request('log', commList[receipts[jsonO.id]]);
} else {
const message = commList[receipts[jsonO.id]];
ipc.connecting = true;
ipc.connect(() => {
ipc.connecting = false;
ipc.request('log', message);
});
}