attempt to fix the issue where some clients stay open after closing
This commit is contained in:
parent
6e7c2aa6a7
commit
07aca75cdc
|
|
@ -243,18 +243,26 @@ public class SecurityFuncs
|
||||||
worker.RunWorkerAsync();
|
worker.RunWorkerAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void WorkerKill(Process exe, ScriptType type, int time, BackgroundWorker worker, string clientname, string mapname)
|
||||||
|
{
|
||||||
|
worker.DoWork -= (obj, e) => WorkerDoWork(exe, type, time, worker, clientname, mapname);
|
||||||
|
worker.CancelAsync();
|
||||||
|
worker.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
private static void WorkerDoWork(Process exe, ScriptType type, int time, BackgroundWorker worker, string clientname, string mapname)
|
private static void WorkerDoWork(Process exe, ScriptType type, int time, BackgroundWorker worker, string clientname, string mapname)
|
||||||
{
|
{
|
||||||
|
DateTime StartTimeAfterMinute = exe.StartTime.AddMinutes(1);
|
||||||
|
|
||||||
if (exe.IsRunning())
|
if (exe.IsRunning())
|
||||||
{
|
{
|
||||||
while (exe.IsRunning())
|
while (exe.IsRunning())
|
||||||
{
|
{
|
||||||
if (!exe.IsRunning())
|
if (exe.MainWindowHandle == null && DateTime.Now > StartTimeAfterMinute)
|
||||||
{
|
{
|
||||||
worker.DoWork -= (obj, e) => WorkerDoWork(exe, type, time, worker, clientname, mapname);
|
exe.Kill();
|
||||||
worker.CancelAsync();
|
WorkerKill(exe, type, time, worker, clientname, mapname);
|
||||||
worker.Dispose();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ INFORMATION
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
[What is Novetus?]
|
[What is Novetus?]
|
||||||
Novetus is a free, multi-version ROBLOX client launcher
|
Novetus is a free and open source multi-version ROBLOX client launcher
|
||||||
built to allow the user to run LAN and Internet servers.
|
built to allow the user to run LAN and Internet servers.
|
||||||
|
|
||||||
Novetus was made to improve on my previous project, RBXLegacy,
|
Novetus was made as a successor to my old RBXLegacy project,
|
||||||
with the addition of new features that enhance the launcher for mod development,
|
with the addition of new features that enhance the launcher for mod development,
|
||||||
player customization, and overall usability.
|
player customization, and overall usability.
|
||||||
|
|
||||||
|
|
@ -40,13 +40,14 @@ Enhancements from RBXLegacy The Final Update 1.16.2 & 1.18.1:
|
||||||
- Largely reworked codebase
|
- Largely reworked codebase
|
||||||
- Custom player icons
|
- Custom player icons
|
||||||
- A command-line utility for hosting servers.
|
- A command-line utility for hosting servers.
|
||||||
- Addon support.
|
- Addon support (Mod Packages and support for addon LUA scripts with a built in scripting API)
|
||||||
- 2006 Color presets!
|
- 2006 Color presets!
|
||||||
- More character colors.
|
- More character colors.
|
||||||
- Graphical Options menu with Automatic and Custom options.
|
- Graphical Options menu with Automatic and Custom options.
|
||||||
- ReShade integration.
|
- ReShade integration.
|
||||||
- Online clothing support with customizable clothing providers.
|
- Online clothing support with customizable clothing providers.
|
||||||
- 2 styles; an Extended style for easy access to options, and a Compact style.
|
- 3 styles; an Extended style for easy access to options, a Compact style resembling the original RBXLegacy, and a default Stylish style built for
|
||||||
|
accessibility and nostalgic style.
|
||||||
- Lite version.
|
- Lite version.
|
||||||
- Much more stable.
|
- Much more stable.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
1.3 Snapshot v22.8259.17635.1
|
||||||
|
Fixes:
|
||||||
|
- Made it so Novetus closes any open client process after 1 minute of not showing a window
|
||||||
|
- This should fix issues with older clients staying open in the background after closing.
|
||||||
|
----------------------------------------------------------------------------
|
||||||
1.3 v8.2022.1
|
1.3 v8.2022.1
|
||||||
Changes from 1.3 v2.2022.1:
|
Changes from 1.3 v2.2022.1:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ DefaultMap=Dev - Baseplate2048.rbxl
|
||||||
UserAgentRegisterClient1=2007M
|
UserAgentRegisterClient1=2007M
|
||||||
UserAgentRegisterClient2=2010L
|
UserAgentRegisterClient2=2010L
|
||||||
ExtendedVersionNumber=True
|
ExtendedVersionNumber=True
|
||||||
ExtendedVersionEditChangelog=False
|
ExtendedVersionEditChangelog=True
|
||||||
ExtendedVersionTemplate=%version% v8.2022.%extended-revision%%lite%
|
//ExtendedVersionTemplate=%version% v8.2022.%extended-revision%%lite%
|
||||||
//ExtendedVersionTemplate=%version% Snapshot v22.%build%.%revision%.%extended-revision%
|
ExtendedVersionTemplate=%version% Snapshot v22.%build%.%revision%.%extended-revision%
|
||||||
ExtendedVersionRevision=1
|
ExtendedVersionRevision=1
|
||||||
IsLite=False
|
IsLite=False
|
||||||
InitialBootup=False
|
InitialBootup=False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue