equal
deleted
inserted
replaced
612 else |
612 else |
613 session:open_stream(session.from_host, session.to_host); |
613 session:open_stream(session.from_host, session.to_host); |
614 end |
614 end |
615 end |
615 end |
616 |
616 |
617 local this_host = session.direction == "incoming" and session.to_host or session.from_host |
617 local this_host = session.direction == "outgoing" and session.from_host or session.to_host |
618 |
618 |
619 if reason then -- nil == no err, initiated by us, false == initiated by remote |
619 if reason then -- nil == no err, initiated by us, false == initiated by remote |
620 local stream_error; |
620 local stream_error; |
621 local condition, text, extra |
621 local condition, text, extra |
622 if type(reason) == "string" then -- assume stream error |
622 if type(reason) == "string" then -- assume stream error |