mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Misc
This commit is contained in:
@@ -76,8 +76,8 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
ServiceHost?.Close();
|
||||
Client?.Close();
|
||||
StopServer();
|
||||
}
|
||||
|
||||
internal bool IsServerRunning() => ServiceHost != null;
|
||||
@@ -113,7 +113,14 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
ServiceHost.Close();
|
||||
if (ServiceHost.State != CommunicationState.Closed) {
|
||||
try {
|
||||
ServiceHost.Close();
|
||||
} catch (Exception e) {
|
||||
Logging.LogGenericException(e);
|
||||
}
|
||||
}
|
||||
|
||||
ServiceHost = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user