Properly shut down renderer when quitting program

This commit is contained in:
Christian Rocha
2020-06-05 12:47:02 -04:00
parent 87434a2569
commit fcbc427098

1
tea.go
View File

@@ -140,6 +140,7 @@ func (p *Program) Start() error {
// Handle quit message
if _, ok := msg.(quitMsg); ok {
mrRenderer.stop()
close(done)
return nil
}