chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.
This commit is contained in:
@@ -17,11 +17,11 @@ public static class StopCommand
|
||||
using var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
|
||||
var endPoint = new UnixDomainSocketEndPoint(socketPath);
|
||||
await socket.ConnectAsync(endPoint);
|
||||
|
||||
|
||||
var msg = new byte[] { 2, (byte)(pipeToStdout ? 1 : 0), (byte)(copyToClipboard ? 1 : 0) };
|
||||
await socket.SendAsync(msg, SocketFlags.None);
|
||||
if (verbose) Console.WriteLine("Sent STOP command to daemon.");
|
||||
|
||||
|
||||
var responseBuffer = new byte[4096];
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user