mirror of
https://github.com/naruxde/revpicommander.git
synced 2026-08-16 13:47:04 +02:00
fix: Endlessloop during revpipyload activation on remote host
RevPi Commander can activate the `revpipyload` service with an SSH connection on the remote host and starts a new connection. If the activation of the service failed, the user was in an endless loop and had to end the process via the operating system. Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
@@ -129,7 +129,8 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
|
|||||||
# region # REGION: Connection management
|
# region # REGION: Connection management
|
||||||
|
|
||||||
@QtCore.pyqtSlot(str, str, ConnectionFail, RevPiSettings)
|
@QtCore.pyqtSlot(str, str, ConnectionFail, RevPiSettings)
|
||||||
def on_cm_connect_error(self, title: str, text: str, fail_code: ConnectionFail, revpi_settings: RevPiSettings):
|
def on_cm_connect_error(self, title: str, text: str, fail_code: ConnectionFail,
|
||||||
|
revpi_settings: RevPiSettings):
|
||||||
"""
|
"""
|
||||||
Slot to get information of pyload_connect connection errors.
|
Slot to get information of pyload_connect connection errors.
|
||||||
|
|
||||||
@@ -138,7 +139,8 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
|
|||||||
:param fail_code: Type of error
|
:param fail_code: Type of error
|
||||||
:param revpi_settings: Settings of the revpi with the error
|
:param revpi_settings: Settings of the revpi with the error
|
||||||
"""
|
"""
|
||||||
if fail_code is ConnectionFail.NO_XML_RPC_VIA_TUNNEL:
|
if (fail_code is ConnectionFail.NO_XML_RPC_VIA_TUNNEL
|
||||||
|
and not getattr(revpi_settings, "ssh_enable_revpipyload", False)):
|
||||||
# If RevPiPyLoad is not running, we can try to activate it via ssh
|
# If RevPiPyLoad is not running, we can try to activate it via ssh
|
||||||
QtWidgets.QMessageBox.information(
|
QtWidgets.QMessageBox.information(
|
||||||
self, self.tr("Information"), self.tr(
|
self, self.tr("Information"), self.tr(
|
||||||
|
|||||||
Reference in New Issue
Block a user