linux-device
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "linux-device", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Native addon to communicate with linux devices (can also be used for sockets or FIFOs)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,3 +31,5 @@ "use strict"; | ||
if(this._currentFunc) { | ||
await this._currentFunc; | ||
try { | ||
await this._currentFunc; | ||
} catch(e) {} | ||
} | ||
@@ -40,3 +42,5 @@ | ||
this._currentFunc = res; | ||
await res; | ||
try { | ||
await res; | ||
} catch(e) {} | ||
if(res === this._currentFunc) this._currentFunc = null; | ||
@@ -43,0 +47,0 @@ return res; |
1102790
1066