ekiga r6121 - trunk/src/endpoints
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6121 - trunk/src/endpoints
- Date: Sat, 5 Apr 2008 10:08:53 +0100 (BST)
Author: jpuydt
Date: Sat Apr 5 10:08:53 2008
New Revision: 6121
URL: http://svn.gnome.org/viewvc/ekiga?rev=6121&view=rev
Log:
Fix race condition in the accounts code
Modified:
trunk/src/endpoints/accountshandler.cpp
Modified: trunk/src/endpoints/accountshandler.cpp
==============================================================================
--- trunk/src/endpoints/accountshandler.cpp (original)
+++ trunk/src/endpoints/accountshandler.cpp Sat Apr 5 10:08:53 2008
@@ -59,13 +59,11 @@
/* Class to register accounts in a thread.
*/
GMAccountsEndpoint::GMAccountsEndpoint (GMManager & endpoint)
-:PThread (1000, NoAutoDeleteThread), ep (endpoint)
+ :PThread (1000, NoAutoDeleteThread),
+ ep (endpoint), accounts(NULL), active(TRUE)
{
this->Resume ();
thread_sync_point.Wait ();
-
- active = TRUE;
- accounts = NULL;
}
@@ -104,7 +102,7 @@
if (accounts_iter->data) {
- list_account = GM_ACCOUNT (accounts_iter)->data;
+ list_account = GM_ACCOUNT (accounts_iter->data);
/* Register SIP account */
if (list_account->protocol_name) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]