bug 518244 move LoadProxyinfo to the main thread r=ted

--HG--
extra : rebase_source : 402d4a53ec72b8b9037e187dccbfbc8ecdb6300b
This commit is contained in:
Karl Tomlinson 2009-09-28 11:33:06 +13:00
Родитель 21d91fa5b6
Коммит 52adaeabc9
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -275,10 +275,6 @@ static gpointer SendThread(gpointer args)
{
string response, error;
#ifdef MOZ_ENABLE_GCONF
LoadProxyinfo();
#endif
bool success = google_breakpad::HTTPUpload::SendRequest
(gSendURL,
gQueryParameters,
@ -297,7 +293,7 @@ static gpointer SendThread(gpointer args)
SendCompleted(success, response);
// Apparently glib is threadsafe, and will schedule this
// on the main thread, see:
// http://library.gnome.org/devel/gtk-faq/stable/x500.html
// http://library.gnome.org/devel/gtk-faq/stable/x499.html
g_idle_add(ReportCompleted, (gpointer)success);
return NULL;
@ -320,6 +316,10 @@ static void SendReport()
gtk_label_set_text(GTK_LABEL(gProgressLabel),
gStrings[ST_REPORTDURINGSUBMIT].c_str());
#ifdef MOZ_ENABLE_GCONF
LoadProxyinfo();
#endif
// and spawn a thread to do the sending
GError* err;
gSendThreadID = g_thread_create(SendThread, NULL, TRUE, &err);