forked from openlp/openlp
Fix wrong status on sending data
This commit is contained in:
parent
e5743462e2
commit
5f232ce5fd
@ -421,9 +421,9 @@ class PJLink1(QTcpSocket):
|
||||
else:
|
||||
out = '%s%s %s%s' % (salt, cmd, opts, CR)
|
||||
try:
|
||||
self.projectorNetwork.emit(S_NETWORK_SENDING)
|
||||
sent = self.write(out)
|
||||
self.waitForBytesWritten(2000) # 2 seconds should be enough
|
||||
self.projectorNetwork.emit(S_NETWORK_RECEIVED)
|
||||
if sent == -1:
|
||||
# Network error?
|
||||
self.change_status(E_NETWORK,
|
||||
|
Loading…
Reference in New Issue
Block a user