Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+5
-4
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "vnc_server_manager.h"
|
||||
#include <utility>
|
||||
|
||||
#include <QRegularExpression>
|
||||
#include <QScreen>
|
||||
@@ -83,7 +84,7 @@ bool VncServerManager::init(const QList<QScreen *> &screens)
|
||||
void VncServerManager::startScreens()
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "Starting " << m_vncScreens.size() << " VNCScreen(s) ... ";
|
||||
for (const VncScreen &s : qAsConst(m_vncScreens))
|
||||
for (const VncScreen &s : std::as_const(m_vncScreens))
|
||||
{
|
||||
connect(s.proc, &QProcess::readyReadStandardOutput,
|
||||
this, &VncServerManager::slotReadStandardOutput, Qt::UniqueConnection);
|
||||
@@ -91,7 +92,7 @@ void VncServerManager::startScreens()
|
||||
this, &VncServerManager::slotErrorOccured, Qt::UniqueConnection);
|
||||
s.proc->start();
|
||||
}
|
||||
for (const VncScreen &s : qAsConst(m_vncScreens))
|
||||
for (const VncScreen &s : std::as_const(m_vncScreens))
|
||||
{
|
||||
if (!s.proc->waitForStarted(2000))
|
||||
ERROR_LOG(m_logger) << "Can not start process '" << s.proc->program() << "': "
|
||||
@@ -105,12 +106,12 @@ void VncServerManager::stopScreens()
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "Stopping " << m_vncScreens.size() << " VNCScreen(s) ...";
|
||||
|
||||
for (const VncScreen &s : qAsConst(m_vncScreens))
|
||||
for (const VncScreen &s : std::as_const(m_vncScreens))
|
||||
{
|
||||
s.proc->disconnect(this);
|
||||
s.proc->terminate();
|
||||
}
|
||||
for (const VncScreen &s : qAsConst(m_vncScreens))
|
||||
for (const VncScreen &s : std::as_const(m_vncScreens))
|
||||
{
|
||||
if (!s.proc->waitForFinished(2000))
|
||||
s.proc->kill();
|
||||
|
||||
Reference in new issue
Block a user