mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 13:32:07 -07:00
misc: added loading boolean flag to api.rest state object
This commit is contained in:
parent
0a31ac8167
commit
a411607a57
2 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,11 @@ func (mod *RestAPI) startReplay(filename string) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
mod.loading = true
|
||||
defer func() {
|
||||
mod.loading = false
|
||||
}()
|
||||
|
||||
mod.Info("loading %s ...", mod.recordFileName)
|
||||
|
||||
start := time.Now()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue