dockerContainers() resolved hanging issue

This commit is contained in:
Sebastian Hildebrandt
2020-10-16 10:29:26 +02:00
parent 0eac590f12
commit 6e60c1d2e8
5 changed files with 13 additions and 4 deletions
+3
View File
@@ -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
View File
@@ -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) {