From c3f0e3598bb2f400122d8391474e291a936207d3 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 29 Mar 2019 20:03:46 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/api_rest/api_rest_replay.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/api_rest/api_rest_replay.go b/modules/api_rest/api_rest_replay.go index b7072d3e..7376f6e3 100644 --- a/modules/api_rest/api_rest_replay.go +++ b/modules/api_rest/api_rest_replay.go @@ -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