From f35c3d9143bbd5fb8741e6012bfa3d6314f429ba Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 29 Oct 2011 11:34:05 +0200 Subject: [PATCH] send a candidate-error when we get a session-accept with no streamhost --- src/common/socks5.py | 3 +++ 1 file changed, 3 insertions(+) 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':