Merge pull request #4656 from kobergj/FixPostprocessingPanic

[tests-only] Don't panic in Postprocessing service
This commit is contained in:
kobergj authored and GitHub committed 2022-09-26 10:55:59 +02:00
commit 74d3967b38
1 file changed
+4
@@ -47,6 +47,10 @@ func (pps *PostprocessingService) Run() error {
next = pp.Init(ev)
case events.VirusscanFinished:
pp := current[ev.UploadID]
if pp == nil {
// no current upload - this was an on demand scan
continue
}
next = pp.Virusscan(ev)
case events.StartPostprocessingStep:
if ev.StepToStart != events.PPStepDelay {