Hopefully the fix for bug 77778: component lists, etc stuttering due to…

Hopefully the fix for bug 77778: component lists, etc stuttering due to corruption in data/versioncache. Patch design by Terry Weissman <terry@mozilla.org> Patch implemented by Dave Miller <justdave@syndicomm.com> r= tara@tequilarista.org
parent 982869a3
......@@ -580,7 +580,9 @@ sub ModTime {
# This proc must be called before using legal_product or the versions array.
$::VersionTableLoaded = 0;
sub GetVersionTable {
return if $::VersionTableLoaded;
my $mtime = ModTime("data/versioncache");
if (!defined $mtime || $mtime eq "") {
$mtime = 0;
......@@ -597,6 +599,7 @@ sub GetVersionTable {
die "Can't generate file data/versioncache";
}
}
$::VersionTableLoaded = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment