Update ServiceMain.cs

This commit is contained in:
Namhyeon Go 2024-08-02 11:07:41 +09:00
parent 8bd2382973
commit a7bc9fa21a

View File

@ -181,10 +181,7 @@ namespace WelsonJS.Service
try try
{ {
Log(DispatchServiceEvent("stop")); Log(DispatchServiceEvent("stop"));
if (scriptControl != null) scriptControl?.Reset();
{
scriptControl.Reset();
}
} }
catch (Exception ex) catch (Exception ex)
{ {