Closed mrose17 closed 10 years ago
my guess is that somewhere in this code:
result = yapi.yRegisterHub(self.url);
if (result != yapi.YAPI_SUCCESS) return logger.error('device/' + self.deviceID, { event: 'yRegisterHub', result: result });
yapi.yUpdateDeviceList();
setTimeout(function() {
var module;
for (module = yapi.yFirstModule(); !!module; module = module.nextModule()) self.addstation(module);
}, 0);
things are going "synchronous" with XMLHTTPRequest, and sometimes it seems to lock up! (the hub in question is wireless and goes in and out of signal, at times). can the yRegisterHub() or yUpdateDeviceList() calls be made asynchronous?
see which any calls in "the inner loop" can be made async, and do so...