mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Hook up reconnect function to actually do something.
This commit is contained in:
@@ -155,7 +155,17 @@ if (typeof Sky === "undefined") Sky = {};
|
||||
};
|
||||
|
||||
Sky.reconnect = function () {
|
||||
// XXX implement
|
||||
if (status.connected) return; // already connected. noop.
|
||||
|
||||
// if we're mid-connection, stop it.
|
||||
if (status.status === "connecting") {
|
||||
fake_connect_failed();
|
||||
}
|
||||
|
||||
if (retry_timer) clearTimeout(retry_timer);
|
||||
retry_timer = undefined;
|
||||
status.retry_count -= 1; // don't count manual retries
|
||||
retry_now();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user