Small fix

This commit is contained in:
EnderIce2 2020-10-25 16:23:54 +02:00
parent b91db81473
commit 5f6cc9fae6

View File

@ -36,7 +36,6 @@ namespace EnderIce2.SDRSharpPlugin
private bool AnswerD = false; private bool AnswerD = false;
public async Task<bool> RequestAnswer(DiscordRpcClient client, JoinRequestMessage args) public async Task<bool> RequestAnswer(DiscordRpcClient client, JoinRequestMessage args)
{ {
bool tmpansw = false;
LogWriter.WriteToFile("Incoming RPC request from " + args.User.Username); LogWriter.WriteToFile("Incoming RPC request from " + args.User.Username);
button1.Visible = true; button1.Visible = true;
button2.Visible = true; button2.Visible = true;
@ -47,7 +46,7 @@ namespace EnderIce2.SDRSharpPlugin
Application.DoEvents(); Application.DoEvents();
await Task.Delay(200); await Task.Delay(200);
} }
tmpansw = AnswerA; bool tmpansw = AnswerA;
LogWriter.WriteToFile($"Client sent an answer. {tmpansw}"); LogWriter.WriteToFile($"Client sent an answer. {tmpansw}");
client.Respond(args, tmpansw); client.Respond(args, tmpansw);
AnswerA = false; AnswerA = false;