js-adapters/ballroom.js in rhoconnect-4.0.0.beta.12 vs js-adapters/ballroom.js in rhoconnect-4.0.0.beta.24

- old
+ new

@@ -17,9 +17,18 @@ var _c_name = null; var _m_name = null; //TODO: Don't have test-specific code here var prefixDir = '/spec/apps/rhotestapp'; +//TODO: This has to be changed in the future +// The only reason for this - on Windows Node.js +// dies and leaves hanging opened sockets +// Proper way: have a global domain as a safety valve +process.on('uncaughtException', function(err) { + client_sub.quit(); + client_pub.quit(); +}); + var controllerName = function(n){ _c_name = n; registeredControllers[_c_name] = {}; registeredControllers[_c_name]['routes'] = []; registeredControllers[_c_name]['defaults'] = []; \ No newline at end of file