Fix threading bugs
This commit is contained in:
parent
589ffbaffc
commit
47183e055c
|
@ -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 = "-";
|
||||
|
||||
|
|
Loading…
Reference in a new issue