small chance crashfix when 502 happens on sendfile

This commit is contained in:
Master Kwoth 2016-07-07 04:44:52 +02:00
parent e47b47b498
commit 9d88627e19

View File

@ -30,6 +30,8 @@ namespace NadekoBot.Modules.Games.Commands
private async void PotentialFlowerGeneration(object sender, Discord.MessageEventArgs e) private async void PotentialFlowerGeneration(object sender, Discord.MessageEventArgs e)
{
try
{ {
if (e.Server == null || e.Channel.IsPrivate) if (e.Server == null || e.Channel.IsPrivate)
return; return;
@ -45,6 +47,8 @@ namespace NadekoBot.Modules.Games.Commands
} }
} }
} }
catch { }
}
//channelid/messageid pair //channelid/messageid pair
ConcurrentDictionary<ulong, Message> plantedFlowerChannels = new ConcurrentDictionary<ulong, Message>(); ConcurrentDictionary<ulong, Message> plantedFlowerChannels = new ConcurrentDictionary<ulong, Message>();