fix a TB
This commit is contained in:
		
							parent
							
								
									32bb3c5024
								
							
						
					
					
						commit
						9cbec8ac6d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -131,7 +131,8 @@ class TCPsocket(PlugIn):
 | 
			
		|||
 | 
			
		||||
        if len(received): # length of 0 means disconnect
 | 
			
		||||
            self.DEBUG(received,'got')
 | 
			
		||||
            self._owner.Dispatcher.Event('', DATA_RECEIVED, received)
 | 
			
		||||
            if hasattr(self._owner, 'Dispatcher'):
 | 
			
		||||
                self._owner.Dispatcher.Event('', DATA_RECEIVED, received)
 | 
			
		||||
        else:
 | 
			
		||||
            self.DEBUG('Socket error while receiving data','error')
 | 
			
		||||
            self._owner.disconnected()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue