Skip to content

Commit 62233d4

Browse files
committed
fix janus reconnecting
1 parent b4fcb1f commit 62233d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/janus/janus_proc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ void janus_reconnects(void)
203203
sock->janus_id.len, sock->janus_id.s,
204204
sock->full_url.len,sock->full_url.s);
205205

206+
close(sock->fd);
207+
sock->fd = -1;
208+
sock->state = S_CONN_OK;
209+
206210
if (janus_reconnect(sock) < 0) {
207211
LM_ERR("Failed to connect JANUS \n");
208212
continue;

0 commit comments

Comments
 (0)