From 0715cb6623feb9540c0ee68f7982e2d4e3ade19b Mon Sep 17 00:00:00 2001 From: FiniteReality Date: Sun, 22 Jan 2017 03:08:52 +0000 Subject: [PATCH] Actually use HashSet to initialize _moduleDefs --- src/Discord.Net.Commands/CommandService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 02a398851..9f6e66c20 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -38,7 +38,7 @@ namespace Discord.Commands _moduleLock = new SemaphoreSlim(1, 1); _typedModuleDefs = new ConcurrentDictionary(); - _moduleDefs = new ConcurrentBag(); + _moduleDefs = new HashSet(); _map = new CommandMap(this); _typeReaders = new ConcurrentDictionary>();