*
This commit is contained in:
parent
4990c6d26a
commit
9830065f5c
4 changed files with 50 additions and 21 deletions
6
event.go
6
event.go
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue