SmallRefactor: Đưa thrStatistics.IsBackground vào Constructor

This commit is contained in:
Le Chau 2020-06-25 10:07:53 +07:00
parent 56e16cf267
commit a7fe049f15

View File

@ -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();
}