SmallRefactor: Đưa thrStatistics.IsBackground vào Constructor
This commit is contained in:
parent
56e16cf267
commit
a7fe049f15
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user