forked from Silverfish/proton-bridge
GODT-2111: Properly reset crash counter + remove additional Quit call.
This commit is contained in:
@ -271,7 +271,6 @@ void QMLBackend::quit()
|
|||||||
void QMLBackend::restart()
|
void QMLBackend::restart()
|
||||||
{
|
{
|
||||||
app().grpc().restart();
|
app().grpc().restart();
|
||||||
app().grpc().quit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ func (restarter *Restarter) Restart() {
|
|||||||
if restarter.crash {
|
if restarter.crash {
|
||||||
env[BridgeCrashCount] = increment(env[BridgeCrashCount])
|
env[BridgeCrashCount] = increment(env[BridgeCrashCount])
|
||||||
} else {
|
} else {
|
||||||
delete(env, BridgeCrashCount)
|
env[BridgeCrashCount] = "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := execabs.Command(restarter.exe, xslices.Join(removeFlagWithValue(os.Args[1:], "parent-pid"), restarter.flags)...) //nolint:gosec
|
cmd := execabs.Command(restarter.exe, xslices.Join(removeFlagWithValue(os.Args[1:], "parent-pid"), restarter.flags)...) //nolint:gosec
|
||||||
|
|||||||
Reference in New Issue
Block a user