aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syz-hub/state/state.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/syz-hub/state/state.go b/syz-hub/state/state.go
index f91efbeb8..d04377166 100644
--- a/syz-hub/state/state.go
+++ b/syz-hub/state/state.go
@@ -124,6 +124,9 @@ func (st *State) createManager(name string) (*Manager, error) {
st.corpusSeq = mgr.corpusSeq
}
mgr.reproSeq = loadSeqFile(mgr.reproSeqFile)
+ if mgr.reproSeq == 0 {
+ mgr.reproSeq = st.reproSeq
+ }
if st.reproSeq < mgr.reproSeq {
st.reproSeq = mgr.reproSeq
}
@@ -150,7 +153,7 @@ func (st *State) Connect(name string, fresh bool, calls []string, corpus [][]byt
mgr.Connected = time.Now()
if fresh {
mgr.corpusSeq = 0
- mgr.reproSeq = 0
+ mgr.reproSeq = st.reproSeq
}
saveSeqFile(mgr.corpusSeqFile, mgr.corpusSeq)
saveSeqFile(mgr.reproSeqFile, mgr.reproSeq)