fix subprocesspow keyboard interrupt not being catched
This commit is contained in:
		
							parent
							
								
									308fca7c22
								
							
						
					
					
						commit
						02fde0ad70
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -116,7 +116,10 @@ class SubprocessPOW: | |||
| 
 | ||||
|         while True: | ||||
|             # Break if shutdown received | ||||
|             if pipe.poll() and pipe.recv() == 'shutdown': | ||||
|             try: | ||||
|                 if pipe.poll() and pipe.recv() == 'shutdown': | ||||
|                     break | ||||
|             except KeyboardInterrupt: | ||||
|                 break | ||||
|             # Load nonce into block metadata | ||||
|             metadata['pow'] = nonce | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue