mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
try fix crash
This commit is contained in:
@@ -1 +1 @@
|
||||
98f91bf391bc16d6c5c825b406b5bdd82f06870e
|
||||
1951fa09a89e8e1f19abfbd0d91478a3e5e311a7
|
||||
|
||||
@@ -1 +1 @@
|
||||
b827a53549f0c79311bb8ac6e01bedff5a19a91e
|
||||
9ac86c30c6190a358da2c83b2b6c093df45af919
|
||||
|
||||
@@ -378,14 +378,14 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
|
||||
for (int retry = 0; retry < 10; retry++) {
|
||||
showLog("Starting nekoray core " + starting_info + "\n");
|
||||
core_process = new QProcess;
|
||||
auto core_process = new QProcess;
|
||||
core_process_show_stderr = false;
|
||||
connect(core_process, &QProcess::readyReadStandardOutput, this,
|
||||
[&]() {
|
||||
[=]() {
|
||||
showLog(core_process->readAllStandardOutput().trimmed());
|
||||
});
|
||||
connect(core_process, &QProcess::readyReadStandardError, this,
|
||||
[&]() {
|
||||
[=]() {
|
||||
auto log = core_process->readAllStandardError().trimmed();
|
||||
if (core_process_show_stderr) {
|
||||
showLog(log);
|
||||
|
||||
@@ -120,7 +120,6 @@ private:
|
||||
//
|
||||
bool core_process_killed = false;
|
||||
bool core_process_show_stderr = false;
|
||||
QProcess *core_process = nullptr;
|
||||
qint64 vpn_pid = 0;
|
||||
QFileSystemWatcher *watcher = nullptr;
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user