misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-03-29 20:03:46 +01:00
commit c3f0e3598b
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -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