mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-09 08:33:23 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user