|
@@ -52,12 +52,12 @@ namespace MafiaTelegramBot.Game.GameRooms
|
|
if(player.IsFirst) await Bot.SendWithMarkdown2(player.Id, strings.user_not_choose);
|
|
if(player.IsFirst) await Bot.SendWithMarkdown2(player.Id, strings.user_not_choose);
|
|
voteTimer.Start();
|
|
voteTimer.Start();
|
|
}
|
|
}
|
|
- DayActionComplete.Set();
|
|
|
|
|
|
+ if(!voteTimer.Enabled) DayActionComplete.Set();
|
|
};
|
|
};
|
|
timer.AutoReset = false;
|
|
timer.AutoReset = false;
|
|
timer.Start();
|
|
timer.Start();
|
|
DayActionComplete.WaitOne();
|
|
DayActionComplete.WaitOne();
|
|
- DayActionComplete.Close();
|
|
|
|
|
|
+ DayActionComplete.Reset();
|
|
timer.Stop();
|
|
timer.Stop();
|
|
voteTimer.Stop();
|
|
voteTimer.Stop();
|
|
if(message!=null) await Bot.Get().DeleteMessageAsync(player.ChatId, message.MessageId);
|
|
if(message!=null) await Bot.Get().DeleteMessageAsync(player.ChatId, message.MessageId);
|