From a7fe049f15a5a4cbdca288e6b71c0abbdacd7534 Mon Sep 17 00:00:00 2001 From: Le Chau Date: Thu, 25 Jun 2020 10:07:53 +0700 Subject: [PATCH] =?UTF-8?q?SmallRefactor:=20=C4=90=C6=B0a=20thrStatistics.?= =?UTF-8?q?IsBackground=20v=C3=A0o=20Constructor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIParkingApplication/Statistic.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AIParkingApplication/Statistic.cs b/AIParkingApplication/Statistic.cs index 31e699b..d5b598d 100644 --- a/AIParkingApplication/Statistic.cs +++ b/AIParkingApplication/Statistic.cs @@ -22,8 +22,7 @@ namespace AIParkingApplication { InitializeComponent(); client = new HttpClient { BaseAddress = new Uri(apiUrl), Timeout = TimeSpan.FromMilliseconds(5000) }; - thrStatistics = new Thread(new ThreadStart(GetStatistic)); - thrStatistics.IsBackground = true; + thrStatistics = new Thread(new ThreadStart(GetStatistic)) { IsBackground = true }; thrStatistics.Start(); }