mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
feat: BIG changes
* use commands constants * use a separate goroutine to read from connection * refactor connection reading and ui updating * add sidepanel for users in channel * other cleanups
This commit is contained in:
+3
-3
@@ -19,10 +19,10 @@ package app
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
func (s *State) Quit() tea.Msg {
|
||||
if s.Client.TlsConn != nil {
|
||||
s.Client.SendCommand("QUIT")
|
||||
s.Client.TlsConn.Close()
|
||||
if s.Client.Quit != nil {
|
||||
close(s.Client.Quit)
|
||||
}
|
||||
|
||||
if s.Client.TcpConn != nil {
|
||||
s.Client.SendCommand("QUIT")
|
||||
s.Client.TcpConn.Close()
|
||||
|
||||
Reference in New Issue
Block a user