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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 1 additions and 0 deletions

1
tea.go
View File

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