tasque r66 - in trunk: . src/Backends/Rtm
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tasque r66 - in trunk: . src/Backends/Rtm
- Date: Sat, 17 May 2008 18:50:56 +0000 (UTC)
Author: sharm
Date: Sat May 17 18:50:56 2008
New Revision: 66
URL: http://svn.gnome.org/viewvc/tasque?rev=66&view=rev
Log:
* src/Backends/Rtm/RtmBackend.cs: Checking if the refresh Thread is
still alive and, if it isn't, create a new Thread to be used.
Prevents crash when switching away from and then back to RTM
backend. Fixes bug #533607, patch courtesy of Charles Schaefer.
Modified:
trunk/ChangeLog
trunk/src/Backends/Rtm/RtmBackend.cs
Modified: trunk/src/Backends/Rtm/RtmBackend.cs
==============================================================================
--- trunk/src/Backends/Rtm/RtmBackend.cs (original)
+++ trunk/src/Backends/Rtm/RtmBackend.cs Sat May 17 18:50:56 2008
@@ -230,9 +230,13 @@
rtm = new Rtm(apiKey, sharedSecret);
runningRefreshThread = true;
+ Logger.Debug("ThreadState: " + refreshThread.ThreadState);
if (refreshThread.ThreadState == ThreadState.Running) {
Logger.Debug ("RtmBackend refreshThread already running");
} else {
+ if (!refreshThread.IsAlive) {
+ refreshThread = new Thread(RefreshThreadLoop);
+ }
refreshThread.Start();
}
runRefreshEvent.Set();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]