Fix deprecation warning
This commit is contained in:
parent
1c60c5480f
commit
70061aee2e
|
|
@ -260,8 +260,7 @@ AutocompleteResponse getResponse(Socket socket)
|
||||||
*/
|
*/
|
||||||
bool serverIsRunning(bool useTCP, string socketFile, ushort port)
|
bool serverIsRunning(bool useTCP, string socketFile, ushort port)
|
||||||
{
|
{
|
||||||
scope (failure)
|
try {
|
||||||
return false;
|
|
||||||
AutocompleteRequest request;
|
AutocompleteRequest request;
|
||||||
request.kind = RequestKind.query;
|
request.kind = RequestKind.query;
|
||||||
Socket socket;
|
Socket socket;
|
||||||
|
|
@ -291,6 +290,10 @@ bool serverIsRunning(bool useTCP, string socketFile, ushort port)
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
catch (Exception _) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Escapes \n, \t and \ in the string. If `single` is true \t won't be escaped.
|
/// Escapes \n, \t and \ in the string. If `single` is true \t won't be escaped.
|
||||||
/// Params:
|
/// Params:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue