From 3c4e20caaa51281316c8a5a14dc8975e161a2669 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Thu, 3 Aug 2017 10:09:36 +0800 Subject: [PATCH] set default waiting time to 10 seconds when app shutting down. --- src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs b/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs index 2e2478a..0d9a808 100644 --- a/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs +++ b/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs @@ -77,7 +77,7 @@ namespace DotNetCore.CAP.Processor _cts.Cancel(); try { - _compositeTask.Wait((int)TimeSpan.FromSeconds(60).TotalMilliseconds); + _compositeTask.Wait((int)TimeSpan.FromSeconds(10).TotalMilliseconds); } catch (AggregateException ex) {