make manager.py less nested
This commit is contained in:
parent
477caf3c80
commit
07dfa0b170
1 changed files with 14 additions and 12 deletions
|
@ -173,7 +173,9 @@ class Manager(object):
|
||||||
self._statistics.clear()
|
self._statistics.clear()
|
||||||
|
|
||||||
def _send_control_data(self, data):
|
def _send_control_data(self, data):
|
||||||
if self._control_client_addr:
|
if not self._control_client_addr:
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._control_socket.sendto(data, self._control_client_addr)
|
self._control_socket.sendto(data, self._control_client_addr)
|
||||||
except (socket.error, OSError, IOError) as e:
|
except (socket.error, OSError, IOError) as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue