lib/rtsp/client.rb in rtsp-0.4.0 vs lib/rtsp/client.rb in rtsp-0.4.1
- old
+ new
@@ -436,10 +436,10 @@
# Ensures that +@session+ is set before continuing on.
#
# @raise [RTSP::Error] Raises if @session isn't set.
def ensure_session
- if @session.empty? || @session[:session_id] <= 0
+ if @session.empty?
raise RTSP::Error, "Session number not retrieved from server yet. Run SETUP first."
end
end
# Extracts the URL associated with the "control" attribute from the main