Skip to content

Commit e6602ed

Browse files
committed
Decrease session switch connection timeout
1 parent da77a34 commit e6602ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

node_mailer/models/messaging.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@ def send_shutdown_message(self) -> None:
109109
tcp_socket = QtNetwork.QTcpSocket()
110110
tcp_socket.connectToHost("localhost", constants.Ports.MESSAGING.value)
111111

112-
if not tcp_socket.waitForConnected(2000):
112+
if not tcp_socket.waitForConnected(500):
113113
return
114114

115115
shutdown_message = {"type": "shutdown"}
116116
tcp_socket.write(json.dumps(shutdown_message).encode("utf-8"))
117117
tcp_socket.waitForBytesWritten()
118118
tcp_socket.disconnectFromHost()
119119
tcp_socket.close()
120-

0 commit comments

Comments
 (0)