Fix Jingle transport error

This commit is contained in:
fiaxh 2019-09-29 00:46:56 +02:00
parent 74c29d4df1
commit 5d65f047d0

View file

@ -601,14 +601,13 @@ public class Session {
} }
if (conn != null) { if (conn != null) {
state = State.ACTIVE; state = State.ACTIVE;
transport = null;
tried_transport_methods.clear(); tried_transport_methods.clear();
if (security != null) { if (security != null) {
connection.set_inner(security.wrap_stream(conn)); connection.set_inner(security.wrap_stream(conn));
} else { } else {
connection.set_inner(conn); connection.set_inner(conn);
} }
transport = null;
} else { } else {
if (role == Role.INITIATOR) { if (role == Role.INITIATOR) {
select_new_transport(stream); select_new_transport(stream);