fix(storage-users): 'uploads sessions' command crash

When started with the '--resume' command line switch the
'storage-users uploads sessions' was crashing because it did not
initialize the event queue correctly.

Fixes: #390
This commit is contained in:
Ralf Haferkamp
2025-03-20 16:02:56 +01:00
parent 036b3669c2
commit 544b354a42

View File

@@ -117,7 +117,7 @@ func ListUploadSessions(cfg *config.Config) *cli.Command {
}
var stream events.Stream
if c.Bool("restart") {
if c.Bool("restart") || c.Bool("resume") {
stream, err = event.NewStream(cfg)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to create event stream: %v\n", err)