vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-13 00:16:32 +12:00
parent ac51bd1d57
commit 68554d84d6

View File

@ -593,7 +593,7 @@ sub RunXstartup {
if (! $skipxstartup) {
system("$xstartupFile >> " . &quotedString($desktopLog) . " 2>&1");
}
if (kill 0, `cat $pidFile`) {
if (&IsXvncRunning()) {
$opt{'-kill'} = ':'.$displayNumber;
&Kill();
}