Skip to content

Commit

Permalink
fix4
Browse files Browse the repository at this point in the history
  • Loading branch information
orestonce committed Nov 18, 2023
1 parent a5352a0 commit c49ab96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ type MergeGetProgressPercent_Resp struct {
}

func MergeGetProgressPercent() (resp MergeGetProgressPercent_Resp) {
resp.IsRunning = gMergeIsRunning.Load()
gMergeIsRunningLocker.Lock()
resp.IsRunning = gMergeIsRunning
gMergeIsRunningLocker.Unlock()
if resp.IsRunning {
resp.Percent = gMergeStatus.GetPercent()
resp.SpeedText = gMergeStatus.SpeedRecent5sGetAndUpdate()
Expand Down

0 comments on commit c49ab96

Please sign in to comment.