Throw ping exception

This commit is contained in:
2023-06-08 21:21:03 +08:00
parent 058a6b7ab2
commit 67468cf28b

View File

@ -46,15 +46,15 @@ namespace GrasscutterTools.OpenCommand
public async Task<bool> Ping() public async Task<bool> Ping()
{ {
try //try
{ //{
var response = await DoRequest("ping"); var response = await DoRequest("ping");
return response.RetCode == 200; return response.RetCode == 200;
} //}
catch (Exception) //catch (Exception)
{ //{
return false; // return false;
} //}
} }
public async Task SendCode(int playerId) public async Task SendCode(int playerId)