forked from openlp/openlp
Fix sending unicode string when expecting ascii (binary) data
This commit is contained in:
parent
9774618d37
commit
7c23941f35
@ -515,7 +515,7 @@ class PJLink1(QTcpSocket):
|
||||
self.socket_timer.start()
|
||||
try:
|
||||
self.projectorNetwork.emit(S_NETWORK_SENDING)
|
||||
sent = self.write(out)
|
||||
sent = self.write(out.encode('ascii'))
|
||||
self.waitForBytesWritten(2000) # 2 seconds should be enough
|
||||
if sent == -1:
|
||||
# Network error?
|
||||
|
Loading…
Reference in New Issue
Block a user