allow explicit reconnect

rather than reconnect being a no-op if it appears connected

this allows an escape hatch if the connection should be forcefully reestablished.
pull/1471/head
Min RK 10 years ago
parent 20ad0d03ee
commit 14e276c6f1

@ -338,7 +338,7 @@ define([
* @function reconnect
*/
if (this.is_connected()) {
return;
this.stop_channels();
}
this._reconnect_attempt = this._reconnect_attempt + 1;
this.events.trigger('kernel_reconnecting.Kernel', {

Loading…
Cancel
Save