fix unix socket not removed on shutdown (#50)
* fix unix socket not removed on shutdown Signed-off-by: naimo <nicolas@aimon.fr>
This commit is contained in:
		
							parent
							
								
									d359d4aa84
								
							
						
					
					
						commit
						cc53d5ebfa
					
				
							
								
								
									
										3
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								app.js
									
									
									
									
									
								
							| @ -289,6 +289,9 @@ function handleTermSignals () { | |||||||
|       socket.disconnect(true) |       socket.disconnect(true) | ||||||
|     }, 0) |     }, 0) | ||||||
|   }) |   }) | ||||||
|  |   if (config.path) { | ||||||
|  |     fs.unlink(config.path) | ||||||
|  |   } | ||||||
|   var checkCleanTimer = setInterval(function () { |   var checkCleanTimer = setInterval(function () { | ||||||
|     if (realtime.isReady()) { |     if (realtime.isReady()) { | ||||||
|       models.Revision.checkAllNotesRevision(function (err, notes) { |       models.Revision.checkAllNotesRevision(function (err, notes) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user