fix getting session jid. Fixes #6994
This commit is contained in:
		
							parent
							
								
									83458833c3
								
							
						
					
					
						commit
						702ea3899b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -925,7 +925,7 @@ class ConnectionHandlersBase:
 | 
				
			||||||
            # there won't be any sessions here if the contact terminated
 | 
					            # there won't be any sessions here if the contact terminated
 | 
				
			||||||
            # their sessions before going offline (which we do)
 | 
					            # their sessions before going offline (which we do)
 | 
				
			||||||
            for sess in self.get_sessions(jid):
 | 
					            for sess in self.get_sessions(jid):
 | 
				
			||||||
                sess_fjid = str(sess.jid)
 | 
					                sess_fjid = sess.jid.getStripped()
 | 
				
			||||||
                if sess.resource:
 | 
					                if sess.resource:
 | 
				
			||||||
                    sess_fjid += '/' + sess.resource
 | 
					                    sess_fjid += '/' + sess.resource
 | 
				
			||||||
                if obj.fjid != sess_fjid:
 | 
					                if obj.fjid != sess_fjid:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue