fixed sdt issue core gui, fixed sdt message sending for python3
This commit is contained in:
parent
b55aad9750
commit
6020496b6f
2 changed files with 6 additions and 2 deletions
|
@ -527,6 +527,10 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
"%s handling message:\n%s", threading.currentThread().getName(), message
|
||||
)
|
||||
|
||||
# provide to sdt, if enabled
|
||||
if self.session and self.session.sdt.is_enabled():
|
||||
self.session.sdt.handle_distributed(message)
|
||||
|
||||
if message.message_type not in self.message_handlers:
|
||||
logging.error("no handler for message type: %s", message.type_str())
|
||||
return
|
||||
|
|
|
@ -242,8 +242,8 @@ class Sdt:
|
|||
if self.sock is None:
|
||||
return False
|
||||
try:
|
||||
logging.info("sdt: %s", cmdstr)
|
||||
self.sock.sendall(f"{cmdstr}\n")
|
||||
cmd = f"{cmdstr}\n".encode()
|
||||
self.sock.sendall(cmd)
|
||||
return True
|
||||
except IOError:
|
||||
logging.exception("SDT connection error")
|
||||
|
|
Loading…
Reference in a new issue