Clean-up: remove test/debug code

This commit is contained in:
Mickael Remond 2019-07-31 18:51:16 +02:00 committed by Mickaël Rémond
parent 3de99e0e0e
commit 2e864ff7f6
2 changed files with 1 additions and 4 deletions

View File

@ -282,9 +282,6 @@ func keepalive(conn net.Conn, quit <-chan struct{}) {
_ = conn.Close() _ = conn.Close()
return return
} }
case <-time.After(3 * time.Second):
_ = conn.Close()
return
case <-quit: case <-quit:
ticker.Stop() ticker.Stop()
return return

View File

@ -270,7 +270,7 @@ func (s *Session) EnableStreamManagement(o Config) {
case stanza.SMEnabled: case stanza.SMEnabled:
s.SMState = SMState{Id: p.Id} s.SMState = SMState{Id: p.Id}
case stanza.SMFailed: case stanza.SMFailed:
// TODO: Store error in SMState // TODO: Store error in SMState, for later inspection
default: default:
fmt.Println(p) fmt.Println(p)
s.err = errors.New("unexpected reply to SM enable") s.err = errors.New("unexpected reply to SM enable")