lib/blather/stream/features/resource.rb in blather-0.4.2 vs lib/blather/stream/features/resource.rb in blather-0.4.3
- old
+ new
@@ -49,10 +49,10 @@
end
Blather.logger.debug "RESOURCE NODE #{@node}"
# ensure this is a response to our original request
if @id == @node['id']
- @stream.jid = JID.new @node.find_first('//bind/bind_ns:jid', :bind_ns => BIND_NS).content
+ @stream.jid = JID.new @node.find_first('bind_ns:bind/bind_ns:jid', :bind_ns => BIND_NS).content
succeed!
else
fail!("BIND result ID mismatch. Expected: #{@id}. Received: #{@node['id']}")
end
end