diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-18 12:46:00 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-18 12:46:00 +0200 |
commit | fafd0111465ded6bfec5c0d91d7dd9c19ddac50b (patch) | |
tree | 17908eae0e0d3292798b7d98777ff8fb22722cfe /pkg/ui/views/game.go | |
parent | 0f21452248783d627ec1a3b4e8a3f8f0d9a69a10 (diff) |
Close connection on end game
Diffstat (limited to 'pkg/ui/views/game.go')
-rw-r--r-- | pkg/ui/views/game.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/ui/views/game.go b/pkg/ui/views/game.go index a97d068..8750789 100644 --- a/pkg/ui/views/game.go +++ b/pkg/ui/views/game.go @@ -102,6 +102,8 @@ func (m GameModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m, cmd = m.handleDatabaseGameMsg(*m.game) cmds = append(cmds, cmd) } + + m.err = m.network.Close() case error: m.err = msg } |