Skip to content

Commit

Permalink
fix await
Browse files Browse the repository at this point in the history
  • Loading branch information
Elepover committed Apr 27, 2020
1 parent 6d4952f commit f2ed0df
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions FILE_STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ File structure of pmcenter's source code:
| |- UpdateHelper - pmcenter updates helper
| | |- ...
| |- ...
|- CommandLineProcess.cs - Loading commandlines to memory
|- CommandLineRouter.cs - Commandlines' router
|- Program.cs - Main entry of pmcenter
|- Setup.cs - Setup wizard's processing logic
|- Template.cs - As its name
Expand Down
2 changes: 1 addition & 1 deletion pmcenter/BotCommands/ResetConfCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
false,
Vars.CurrentConf.DisableNotifications,
update.Message.MessageId).ConfigureAwait(false);
Methods.ExitApp(0);
await Methods.ExitApp(0);
return true;
}
else
Expand Down
2 changes: 1 addition & 1 deletion pmcenter/BotCommands/RestartCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
Vars.CurrentConf.DisableNotifications,
update.Message.MessageId).ConfigureAwait(false);
Thread.Sleep(5000);
Methods.ExitApp(0);
await Methods.ExitApp(0);
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion pmcenter/BotCommands/UpdateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Telegram.Bot.T
Vars.CurrentConf.DisableNotifications,
update.Message.MessageId).ConfigureAwait(false);
Log("Exiting program... (Let the daemon do the restart job)", "BOT");
ExitApp(0);
await ExitApp(0);
return true;
// end of difference
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f2ed0df

Please sign in to comment.