We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da77a34 commit e6602edCopy full SHA for e6602ed
node_mailer/models/messaging.py
@@ -109,12 +109,11 @@ def send_shutdown_message(self) -> None:
109
tcp_socket = QtNetwork.QTcpSocket()
110
tcp_socket.connectToHost("localhost", constants.Ports.MESSAGING.value)
111
112
- if not tcp_socket.waitForConnected(2000):
+ if not tcp_socket.waitForConnected(500):
113
return
114
115
shutdown_message = {"type": "shutdown"}
116
tcp_socket.write(json.dumps(shutdown_message).encode("utf-8"))
117
tcp_socket.waitForBytesWritten()
118
tcp_socket.disconnectFromHost()
119
tcp_socket.close()
120
-
0 commit comments