瀏覽代碼

removed annoying uncaught exception handler

Simon Van Mierlo 9 年之前
父節點
當前提交
dfba771975
共有 1 個文件被更改,包括 0 次插入21 次删除
  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)
 	{