这是indexloc提供的服务,不要输入任何密码
Skip to content

Panic on Stop() with nil channel #17

@mrqwer88

Description

@mrqwer88

Hello!

As example without writer

package main

import (
	"github.com/gosuri/uilive"
)

func main() {
	writer := uilive.New()

	// start listening for updates and render
	//writer.Start()

	writer.Stop() // flush and stop rendering
}

we go to panic on Stop().
How I see befor 57b6e55 we not go to panic without Start().
Was it done on purpose?
Or it can be ignored in library like mrqwer88@7da1a80 as example?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions