From 4c462923f2d462f0c95ae459e96ee7be652a2346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20Koral?= <45078678+oguzhankoral@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:16:35 +0300 Subject: [PATCH] Use default CancellationTokenSource.None (#233) --- DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs b/DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs index 0255c46ac..0a488826f 100644 --- a/DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs +++ b/DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs @@ -105,11 +105,7 @@ public void AssociateWithBinding(IBinding binding) // This conveniently executes the code outside the UI thread and does not block during long operations (such as sending). _actionBlock = new ActionBlock( OnActionBlock, - new ExecutionDataflowBlockOptions - { - MaxDegreeOfParallelism = 1000, - CancellationToken = new CancellationTokenSource(TimeSpan.FromDays(10000)).Token // Do not change the timespan. This time defines the session time that we enable for user. - } + new ExecutionDataflowBlockOptions { MaxDegreeOfParallelism = 1000 } ); _logger.LogInformation("Bridge bound to front end name {FrontEndName}", binding.Name);