mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Fix multicast bug, set static multicast interval 15 seconds
This commit is contained in:
		
							parent
							
								
									c0d5a8c0bd
								
							
						
					
					
						commit
						531d9f39ca
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -153,6 +153,7 @@ func (m *multicast) announce() {
 | 
				
			||||||
						m.core.log.Debugln("Started multicasting on", iface.Name)
 | 
											m.core.log.Debugln("Started multicasting on", iface.Name)
 | 
				
			||||||
						// Store the listener so that we can stop it later if needed
 | 
											// Store the listener so that we can stop it later if needed
 | 
				
			||||||
						m.listeners[iface.Name] = l
 | 
											m.listeners[iface.Name] = l
 | 
				
			||||||
 | 
											listener = l
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				} else {
 | 
									} else {
 | 
				
			||||||
					// An existing listener was found
 | 
										// An existing listener was found
 | 
				
			||||||
| 
						 | 
					@ -171,9 +172,8 @@ func (m *multicast) announce() {
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				break
 | 
									break
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			time.Sleep(time.Second)
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		time.Sleep(time.Second * 5)
 | 
							time.Sleep(time.Second * 15)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue