mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Privatize the "force" option to Meteor.reconnect (added on the auth branch and
mostly used for manual testing).
This commit is contained in:
@@ -127,7 +127,7 @@ _.extend(Meteor._Stream.prototype, {
|
||||
var self = this;
|
||||
|
||||
if (self.current_status.connected) {
|
||||
if (options && options.force) {
|
||||
if (options && options._force) {
|
||||
// force reconnect.
|
||||
self._disconnected();
|
||||
} // else, noop.
|
||||
|
||||
@@ -20,7 +20,7 @@ testAsyncMulti("stream - reconnect", [
|
||||
status = Meteor.status();
|
||||
test.equal(status.status, "connected");
|
||||
|
||||
Meteor.reconnect({force: true});
|
||||
Meteor.reconnect({_force: true});
|
||||
status = Meteor.status();
|
||||
test.equal(status.status, "waiting");
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user