mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	force cluster false for pre-worker systems (issue #80)
This commit is contained in:
		
							parent
							
								
									bd5ee84e25
								
							
						
					
					
						commit
						347402a4d4
					
				@ -17,7 +17,7 @@ var GLE = module.exports;
 | 
				
			|||||||
// under the hood. That's the hope, anyway.
 | 
					// under the hood. That's the hope, anyway.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GLE.init = function(fn) {
 | 
					GLE.init = function(fn) {
 | 
				
			||||||
    if (cluster.isWorker) {
 | 
					    if (false !== fn.cluster && cluster.isWorker) {
 | 
				
			||||||
        // ignore the init function and launch the worker
 | 
					        // ignore the init function and launch the worker
 | 
				
			||||||
        return require("./worker.js").create();
 | 
					        return require("./worker.js").create();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user