--- a/Toolbox/SingleApplication.py Wed Dec 12 19:43:53 2018 +0100 +++ b/Toolbox/SingleApplication.py Wed Dec 12 19:52:24 2018 +0100 @@ -135,10 +135,12 @@ self.name = name self.connected = False - def connect(self): + def connect(self, timeout=10000): """ Public method to connect the single application client to its server. + @param timeout connection timeout value in milliseconds + @type int @return value indicating success or an error number. Value is one of: <table> <tr><td>0</td><td>No application is running</td></tr> @@ -147,7 +149,7 @@ """ self.sock = QLocalSocket() self.sock.connectToServer(self.name) - if self.sock.waitForConnected(10000): + if self.sock.waitForConnected(timeout): self.connected = True return 1 else: