diff --git a/src/common/socks5.py b/src/common/socks5.py index 91849a296..faf3cce8a 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -133,6 +133,9 @@ class SocksQueue: file_props = self.files_props[account][sid] file_props['failure_cb'] = on_failure + if not file_props['streamhosts']: + on_failure(file_props['sid']) + # add streamhosts to the queue for streamhost in file_props['streamhosts']: if 'type' in streamhost and streamhost['type'] == 'proxy':