Error if no peer connection found
This commit is contained in:
parent
a4a23f3ea0
commit
ae21f056d5
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ class Peer(object):
|
|||
|
||||
for retry in range(1, 4): # Retry 3 times
|
||||
try:
|
||||
if not self.connection:
|
||||
raise Exception("No connection found")
|
||||
res = self.connection.request(cmd, params, stream_to)
|
||||
if not res:
|
||||
raise Exception("Send error")
|
||||
|
|
Loading…
Reference in a new issue