mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +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
|
else
|
||||||
{
|
{
|
||||||
QDir(QV2RAY_CONNECTIONS_DIR + id.toString()).removeRecursively();
|
QFile(QV2RAY_CONNECTIONS_DIR + id.toString()).remove();
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
PluginHost->Send_ConnectionEvent({ Events::ConnectionEntry::FullyRemoved, groups[id].displayName, "" });
|
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)
|
const std::optional<QString> QvConfigHandler::StartConnection(const ConnectionId &id, const GroupId &group)
|
||||||
{
|
{
|
||||||
return {};
|
CheckConnectionExistance(id);
|
||||||
// CheckConnectionExistance(id);
|
connections[id].lastConnected = system_clock::to_time_t(system_clock::now());
|
||||||
// connections[id].lastConnected = system_clock::to_time_t(system_clock::now());
|
CONFIGROOT root = GetConnectionRoot(id);
|
||||||
// CONFIGROOT root = GetConnectionRoot(id);
|
return kernelHandler->StartConnection({ id, group }, root);
|
||||||
// return kernelHandler->StartConnection(id, root);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QvConfigHandler::RestartConnection() // const ConnectionId &id
|
void QvConfigHandler::RestartConnection() // const ConnectionId &id
|
||||||
|
Loading…
Reference in New Issue
Block a user