Fix infinite loop in exit routine
This commit is contained in:
		
							parent
							
								
									34891d92cd
								
							
						
					
					
						commit
						09a9bc2899
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		|  | @ -245,9 +245,10 @@ func (device *Device) RoutineDecryption() { | ||||||
| 					elem.Drop() | 					elem.Drop() | ||||||
| 				} | 				} | ||||||
| 			default: | 			default: | ||||||
| 				break | 				goto out | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | 		out: | ||||||
| 		logDebug.Println("Routine: decryption worker - stopped") | 		logDebug.Println("Routine: decryption worker - stopped") | ||||||
| 	}() | 	}() | ||||||
| 	logDebug.Println("Routine: decryption worker - started") | 	logDebug.Println("Routine: decryption worker - started") | ||||||
|  | @ -317,9 +318,10 @@ func (device *Device) RoutineHandshake() { | ||||||
| 			select { | 			select { | ||||||
| 			case <-device.queue.handshake: | 			case <-device.queue.handshake: | ||||||
| 			default: | 			default: | ||||||
| 				return | 				goto out | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | 		out: | ||||||
| 		logDebug.Println("Routine: handshake worker - stopped") | 		logDebug.Println("Routine: handshake worker - stopped") | ||||||
| 	}() | 	}() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								send.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								send.go
									
									
									
									
									
								
							|  | @ -281,9 +281,10 @@ func (device *Device) RoutineEncryption() { | ||||||
| 					elem.Drop() | 					elem.Drop() | ||||||
| 				} | 				} | ||||||
| 			default: | 			default: | ||||||
| 				break | 				goto out | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | 		out: | ||||||
| 		logDebug.Println("Routine: encryption worker - stopped") | 		logDebug.Println("Routine: encryption worker - stopped") | ||||||
| 	}() | 	}() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue