mirror of
				https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
				synced 2025-11-04 04:15:48 +00:00 
			
		
		
		
	Prevent background restarting, allow retry quit
This commit is contained in:
		@@ -106,8 +106,15 @@ if (!sigintEventHandler) {
 | 
			
		||||
 | 
			
		||||
  const quit = () => {
 | 
			
		||||
    if (!quitting) {
 | 
			
		||||
      clearTimeout(aliveInterval)
 | 
			
		||||
 | 
			
		||||
      quitting = true
 | 
			
		||||
 | 
			
		||||
      // Allow for re-quit shortly after
 | 
			
		||||
      setTimeout(() => {
 | 
			
		||||
        quitting = false
 | 
			
		||||
      }, 1000)
 | 
			
		||||
 | 
			
		||||
      console.log('Closing (interrupting) connections', connections.length)
 | 
			
		||||
      connections
 | 
			
		||||
        .map(async c => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user