Reset lastMojangServiceUpdate on disconnect

This commit is contained in:
Nick Keeper 2016-04-26 15:15:39 -05:00
parent 0561b84448
commit 26939910dc

View File

@ -210,6 +210,8 @@ $(document).ready(function() {
socket.on('disconnect', function() {
if (mojangServicesUpdater) clearInterval(mojangServicesUpdater);
if (sortServersTask) clearInterval(sortServersTask);
lastMojangServiceUpdate = undefined;
$('#tagline').attr('class', 'status-offline');
$('#tagline-text').text('Disconnected! Refresh?');