Skip to content

Commit

Permalink
Revert "Speed improvement: Moving check online to different thread"
Browse files Browse the repository at this point in the history
Temporarily reverting changes to addon_menu.cpp until they can be built on platforms other than OS X Mavericks.

This reverts commit 6d4d72e.
  • Loading branch information
LMH0013 committed Jan 3, 2014
1 parent 4f32631 commit 39264f3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/supertux/menu/addon_menu.cpp
Expand Up @@ -18,7 +18,6 @@

#include <config.h>
#include <algorithm>
#include <thread>
#include <boost/format.hpp>

#include "addon/addon.hpp"
Expand All @@ -32,12 +31,6 @@ bool generate_addons_menu_sorter(const Addon* a1, const Addon* a2)
return a1->title < a2->title;
}

void check_online() // Shortcut to expensive function to be called by a thread
{
AddonManager::get_instance().check_online();
}


} // namespace

AddonMenu::AddonMenu() :
Expand Down Expand Up @@ -139,8 +132,7 @@ AddonMenu::check_menu()
{
try
{
std::thread addonThread(check_online);
addonThread.join();
AddonManager::get_instance().check_online();
refresh();
set_active_item(index);
}
Expand Down

0 comments on commit 39264f3

Please sign in to comment.