about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-10 22:17:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-10 22:17:53 +0200
commit1eec6bb14f08124e1e8d6f2e0b072862590f1ff1 (patch)
tree23d5d39a0a37f0105c7d810f9634412f5b3f5c43 /Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs
parentSmall refactors (diff)
downloadLibMatrix-1eec6bb14f08124e1e8d6f2e0b072862590f1ff1.tar.xz
Set timeout for command listener
Diffstat (limited to 'Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs')
-rw-r--r--Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs b/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs
index 0dcf3e3..f56f9c1 100644
--- a/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs
+++ b/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs
@@ -81,7 +81,7 @@ public class CommandListenerHostedService : IHostedService {
                 _logger.LogError(e, "Error in command listener!");
             }
         });
-        await new SyncHelper(_hs).RunSyncLoopAsync(cancellationToken: cancellationToken);
+        await new SyncHelper(_hs){Timeout = 2500}.RunSyncLoopAsync(cancellationToken: cancellationToken);
     }
 
     /// <summary>Triggered when the application host is performing a graceful shutdown.</summary>