Fix threading bugs

This commit is contained in:
Laura 2018-06-10 11:23:30 +02:00
parent 589ffbaffc
commit 47183e055c

View file

@ -123,10 +123,12 @@ namespace ProgressBarLib {
public void Stop() {
_shouldStop = true;
while (!_hasStopped) ;
while (!_hasStopped) { }
}
private static string MakeProgressBar(int curr, int total) {
if (curr > total)
curr = total;
const string fullChar = "=";
const string blankChar = "-";