This commit is contained in:
Lobo 2026-02-02 13:56:16 -03:00
parent 4990c6d26a
commit 9830065f5c
4 changed files with 50 additions and 21 deletions

View file

@ -96,8 +96,10 @@ func (_ HangupEvent) HandleOutgoing(app *App) error {
app.conn.stop()
app.conn.Write([]byte("QUIT\n"))
app.conn.Close()
app.conn.ticker.Stop()
app.conn.ticker = nil
if app.conn.ticker != nil {
app.conn.ticker.Stop()
app.conn.ticker = nil
}
app.conn = nil
app.incoming <- HangupEvent{host, port}