diff options
Diffstat (limited to 'src/common/connection_handlers.py')
-rw-r--r-- | src/common/connection_handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index d0089c142..044e42cc3 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -470,7 +470,7 @@ class ConnectionBytestream: raise common.xmpp.NodeProcessed if streamhost is None: # proxy approves the activate query - if real_id[:3] == 'au_': + if real_id.startswith('au_'): id = real_id[3:] if 'streamhost-used' not in file_props or \ file_props['streamhost-used'] is False: @@ -488,7 +488,7 @@ class ConnectionBytestream: file_props['streamhost-used'] is True: raise common.xmpp.NodeProcessed - if real_id[:3] == 'au_': + if real_id.startswith('au_'): if 'stopped' in file and file_props['stopped']: self.remove_transfer(file_props) else: |