Explorar o código

removed annoying uncaught exception handler

Simon Van Mierlo %!s(int64=9) %!d(string=hai) anos
pai
achega
dfba771975
Modificáronse 1 ficheiros con 0 adicións e 21 borrados
  1. 0 21
      __worker.js

+ 0 - 21
__worker.js

@@ -485,27 +485,6 @@ function __batchCheckpoint(id,start)
 }
 
 
-
-/*********************************** LOGIC ************************************/
-process.on('uncaughtException', 
-	function(error)
-	{					
-		/* there is no nice way of getting the response index associated with this
-		 	error... so we just dump it to the console (the worker will be killed 
-			due to timeouts)... in a release version, all errors should be properly
-		  	caught and this function should never be triggered */
-		if( error.message == 'Socket is not writable' )
-			_util.debug('ignoring failed re-send error');
-		else
-		{
-			_util.log(' ----------- FATAL WORKER ERROR ----------- ');
-			_util.log(error);
-			_util.log(' __________________________________________ ');
-			process.exit(1);
-		}
-	});
-
-
 process.on('message', 
 	function(msg)
 	{