~samwhited/xmpp

c7888b6124681853d02e74fd96be342291da2db3 — Sam Whited 5 years ago 3a5d792
If a resource is bound, the stream is ready
3 files changed, 3 insertions(+), 3 deletions(-)

M bind.go
M features.go
M stream.go
M bind.go => bind.go +1 -1
@@ 86,7 86,7 @@ func BindResource() StreamFeature {
				default:
					return mask, StanzaError{Condition: BadRequest}
				}
				return Bind, nil
				return Bind | Ready, nil
			}
		},
	}

M features.go => features.go +1 -1
@@ 128,7 128,7 @@ func (c *Conn) negotiateFeatures(ctx context.Context) (done bool, err error) {
		if err == nil {
			c.state |= mask
		}
		return !list.req, err
		return !list.req || (c.state&Ready == Ready), err
	}
}


M stream.go => stream.go +1 -1
@@ 251,5 251,5 @@ restartstream:
		}
		break
	}
	panic("xmpp: Not yet implemented.")
	return nil
}