summaryrefslogtreecommitdiff
path: root/services/Nmcli.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/Nmcli.qml')
-rw-r--r--services/Nmcli.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/services/Nmcli.qml b/services/Nmcli.qml
index 24a93da..36bd3e6 100644
--- a/services/Nmcli.qml
+++ b/services/Nmcli.qml
@@ -1272,7 +1272,15 @@ Singleton {
stdout: SplitParser {
onRead: root.refreshOnConnectionChange()
}
- onExited: Qt.callLater(() => monitorProc.running = true, 2000)
+ onExited: monitorRestartTimer.start()
+ }
+
+ Timer {
+ id: monitorRestartTimer
+ interval: 2000
+ onTriggered: {
+ monitorProc.running = true;
+ }
}
function refreshOnConnectionChange(): void {