Skip to content

Commit

Permalink
fix disconnect event emitting when enabling reconn, #71
Browse files Browse the repository at this point in the history
When enabling auto reconn, it should emit a disconnect event
when starting to reconnect.
  • Loading branch information
cynron committed Dec 22, 2014
1 parent 2f0b8d9 commit f380e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client.c
Expand Up @@ -267,6 +267,7 @@ void pc_client_stop(pc_client_t *client) {
return;
}

pc_emit_event(client, PC_EVENT_DISCONNECT, NULL);
pc__client_reconnect(client);
return;
}
Expand Down

0 comments on commit f380e0b

Please sign in to comment.