mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 10:50:23 +08:00
fix: fixed connection issue
This commit is contained in:
parent
d55e6d50bd
commit
7963f03f55
@ -1 +1 @@
|
||||
5402
|
||||
5403
|
@ -330,7 +330,7 @@ namespace Qv2ray::core::handlers
|
||||
}
|
||||
else
|
||||
{
|
||||
QDir(QV2RAY_CONNECTIONS_DIR + id.toString()).removeRecursively();
|
||||
QFile(QV2RAY_CONNECTIONS_DIR + id.toString()).remove();
|
||||
}
|
||||
//
|
||||
PluginHost->Send_ConnectionEvent({ Events::ConnectionEntry::FullyRemoved, groups[id].displayName, "" });
|
||||
@ -347,11 +347,10 @@ namespace Qv2ray::core::handlers
|
||||
|
||||
const std::optional<QString> QvConfigHandler::StartConnection(const ConnectionId &id, const GroupId &group)
|
||||
{
|
||||
return {};
|
||||
// CheckConnectionExistance(id);
|
||||
// connections[id].lastConnected = system_clock::to_time_t(system_clock::now());
|
||||
// CONFIGROOT root = GetConnectionRoot(id);
|
||||
// return kernelHandler->StartConnection(id, root);
|
||||
CheckConnectionExistance(id);
|
||||
connections[id].lastConnected = system_clock::to_time_t(system_clock::now());
|
||||
CONFIGROOT root = GetConnectionRoot(id);
|
||||
return kernelHandler->StartConnection({ id, group }, root);
|
||||
}
|
||||
|
||||
void QvConfigHandler::RestartConnection() // const ConnectionId &id
|
||||
|
Loading…
Reference in New Issue
Block a user