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
|
var stream events.Stream
|
||||||
if c.Bool("restart") {
|
if c.Bool("restart") || c.Bool("resume") {
|
||||||
stream, err = event.NewStream(cfg)
|
stream, err = event.NewStream(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Failed to create event stream: %v\n", err)
|
fmt.Fprintf(os.Stderr, "Failed to create event stream: %v\n", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user