forked from indymedia/epicyon
				
			Don't use watchdog in unit tests
							parent
							
								
									5d110d73e9
								
							
						
					
					
						commit
						16a414fc53
					
				
							
								
								
									
										12
									
								
								daemon.py
								
								
								
								
							
							
						
						
									
										12
									
								
								daemon.py
								
								
								
								
							|  | @ -3523,10 +3523,14 @@ def runDaemon(projectVersion, \ | ||||||
|                               httpd.ocapAlways,maxReplies, \ |                               httpd.ocapAlways,maxReplies, \ | ||||||
|                               domainMaxPostsPerDay,accountMaxPostsPerDay, \ |                               domainMaxPostsPerDay,accountMaxPostsPerDay, \ | ||||||
|                               allowDeletion,debug,httpd.acceptedCaps),daemon=True) |                               allowDeletion,debug,httpd.acceptedCaps),daemon=True) | ||||||
|     httpd.thrWatchdog= \ |     if not unitTest:  | ||||||
|         threadWithTrace(target=runInboxQueueWatchdog, \ |         httpd.thrWatchdog= \ | ||||||
|                         args=(projectVersion,httpd),daemon=True)         |             threadWithTrace(target=runInboxQueueWatchdog, \ | ||||||
|     httpd.thrWatchdog.start() |                             args=(projectVersion,httpd),daemon=True)         | ||||||
|  |         httpd.thrWatchdog.start() | ||||||
|  |     else: | ||||||
|  |         httpd.thrInboxQueue.start() | ||||||
|  | 
 | ||||||
|     if clientToServer: |     if clientToServer: | ||||||
|         print('Running ActivityPub client on ' + domain + ' port ' + str(proxyPort)) |         print('Running ActivityPub client on ' + domain + ' port ' + str(proxyPort)) | ||||||
|     else: |     else: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue