Possible fix for slowdown with inrole and xplb clean commands

This commit is contained in:
Kwoth
2022-01-01 16:27:30 +01:00
parent 9ed0c870d1
commit 179784da3e

View File

@@ -19,6 +19,9 @@ namespace NadekoBot.Common
/// <returns>Task representing download state</returns>
public async Task EnsureUsersDownloadedAsync(IGuild guild)
{
#if !GLOBAL_NADEKO
return;
#endif
await downloadUsersSemaphore.WaitAsync();
try
{