mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay: attempt to eliminate freezing when networks are down
This commit is contained in:
		
							parent
							
								
									4c00479d78
								
							
						
					
					
						commit
						504a9be7d6
					
				@ -339,11 +339,9 @@ def getRemoteUser(irc, remoteirc, user, spawnIfMissing=True):
 | 
			
		||||
    Gets the UID of the relay client requested on the target network (remoteirc),
 | 
			
		||||
    spawning one if it doesn't exist and spawnIfMissing is True."""
 | 
			
		||||
 | 
			
		||||
    # Wait until both the local and remote networks are working before trying to spawn anything.
 | 
			
		||||
    # Wait until both the network is working before trying to spawn anything.
 | 
			
		||||
    log.debug('(%s) getRemoteUser: waiting for irc.connected', irc.name)
 | 
			
		||||
    irc.connected.wait()
 | 
			
		||||
    log.debug('(%s) getRemoteUser: waiting for %s.connected', irc.name, remoteirc.name)
 | 
			
		||||
    remoteirc.connected.wait()
 | 
			
		||||
 | 
			
		||||
    # Don't spawn clones for registered service bots.
 | 
			
		||||
    sbot = irc.isServiceBot(user)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user