~samwhited/xmpp

6c7066c4b5582b4a7881aca98f7bc9e452ae2144 — Sam Whited 5 years ago 7041c41
Panic on unimplemented feature negotiation
1 files changed, 2 insertions(+), 2 deletions(-)

M features.go
M features.go => features.go +2 -2
@@ 44,9 44,9 @@ type StreamFeature struct {

func (c *Conn) negotiateFeatures(ctx context.Context) error {
	if (c.state & Received) == Received {
		// sendFeatures
		panic("Sending stream:features not yet implemented")
	} else {
		// expectFeatures
		panic("Receiving stream:features not yet implemented")
	}
	return nil
}