[simias-svn] SF.net SVN: simias:[7533] trunk/src/core/Sync/SyncClient.cs
Brought to you by:
srinidhi_bs
|
From: <mv...@us...> - 2010-10-20 08:59:18
|
Revision: 7533
http://simias.svn.sourceforge.net/simias/?rev=7533&view=rev
Author: mvikash
Date: 2010-10-20 08:59:12 +0000 (Wed, 20 Oct 2010)
Log Message:
-----------
updating filemonitor.scanthread status as false, when scanthread is null.
Modified Paths:
--------------
trunk/src/core/Sync/SyncClient.cs
Modified: trunk/src/core/Sync/SyncClient.cs
===================================================================
--- trunk/src/core/Sync/SyncClient.cs 2010-10-19 05:45:56 UTC (rev 7532)
+++ trunk/src/core/Sync/SyncClient.cs 2010-10-20 08:59:12 UTC (rev 7533)
@@ -1150,7 +1150,7 @@
{
if(isNewifolder == true)
{
- log.Debug("new iFolder start the scan thread");
+ log.Debug("new iFolder start the scan thread");
scanThread = new Thread(new ThreadStart(fileMonitor.CheckForFileChanges));
scanThread.IsBackground = true;
scanThread.Priority = ThreadPriority.BelowNormal;
@@ -1790,7 +1790,14 @@
// doing atomic
lock (fileMonitor)
{
- scanThreadStatus = fileMonitor.scanThreadRunning;
+
+ if (scanThread == null || scanThread.IsAlive == false)
+ {
+ fileMonitor.scanThreadRunning = false;
+ }
+
+ scanThreadStatus = fileMonitor.scanThreadRunning;
+
}
if(scanThreadStatus == false)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|