Skip to content

Commit

Permalink
#3089 check availability of file transfers before using the function
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 15, 2021
1 parent db8f69f commit 73e598c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xpra/server/mixins/server_base_controlcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ def control_command_open_url(self, url, client_uuids="*"):
raise ControlError("no clients found matching: %s" % client_uuids)
clients = 0
for ss in sources:
if ss.send_open_url(url):
clients += 1
if hasattr(ss, "send_open_url"):
if ss.send_open_url(url):
clients += 1
return "url sent to %i clients" % clients

def control_command_send_file(self, filename, openit="open", client_uuids="*", maxbitrate=0):
Expand Down

0 comments on commit 73e598c

Please sign in to comment.