mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
ec28399677
commit
c3f0e3598b
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ func (mod *RestAPI) startReplay(filename string) (err error) {
|
|||
}
|
||||
|
||||
mod.State.Store("load_progress", 0)
|
||||
defer func() {
|
||||
mod.State.Store("load_progress", 100.0)
|
||||
}()
|
||||
|
||||
mod.loading = true
|
||||
defer func() {
|
||||
mod.loading = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue