Fix the fix to the infinite reload loop

…after talking to arbesfeld
This commit is contained in:
David Greenspan
2014-08-26 16:28:07 -07:00
parent f529220330
commit 86ff4a0637

View File

@@ -130,7 +130,8 @@ Autoupdate._retrySubscription = function () {
attachStylesheetLink(newLink);
});
}
else if (doc._id === 'version' && doc.version !== autoupdateVersion && handle) {
else if (doc._id === 'version' && autoupdateVersion !== 'unknown' &&
doc.version !== autoupdateVersion) {
handle && handle.stop();
Package.reload.Reload._reload();
}