Clean-up: remove test/debug code

pull/98/head
Mickael Remond 5 years ago
parent 3f48672946
commit 1b3dec3902
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

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

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

Loading…
Cancel
Save