dockerContainers() resolved hanging issue
This commit is contained in:
@@ -162,6 +162,9 @@ function dockerContainers(all, callback) {
|
||||
if (callback) { callback(result); }
|
||||
resolve(result);
|
||||
}
|
||||
} else {
|
||||
if (callback) { callback(result); }
|
||||
resolve(result);
|
||||
}
|
||||
} catch (err) {
|
||||
// GC in _docker_container_stats
|
||||
|
||||
+2
-2
@@ -745,7 +745,8 @@ function networkInterfaces(callback, rescan = true) {
|
||||
_ifaces = Object.assign({}, ifaces);
|
||||
|
||||
if (_windows) {
|
||||
getWindowsNics().forEach(nic => {
|
||||
nics = getWindowsNics();
|
||||
nics.forEach(nic => {
|
||||
let found = false;
|
||||
Object.keys(ifaces).forEach(key => {
|
||||
if (!found) {
|
||||
@@ -763,7 +764,6 @@ function networkInterfaces(callback, rescan = true) {
|
||||
});
|
||||
|
||||
nics8021xInfo = getWindowsWiredProfilesInformation();
|
||||
nics = getWindowsNics();
|
||||
dnsSuffixes = getWindowsDNSsuffixes();
|
||||
}
|
||||
if (_linux) {
|
||||
|
||||
Reference in New Issue
Block a user