Skip to content

Commit f2aa0f8

Browse files
committed
fix(tui): close sync client when killing notes process
1 parent 54b6c8b commit f2aa0f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/tui/speaker_notes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func (m SpeakerNotesModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
177177
case tea.KeyMsg:
178178
switch msg.String() {
179179
case "q", "esc", "ctrl+c":
180+
if m.syncClient != nil {
181+
m.syncClient.Close()
182+
}
180183
return m, tea.Quit
181184
}
182185
}

0 commit comments

Comments
 (0)