Commits

Sepehr Taghdisian committed cbdc266 Merge

merged with spartanJ efsw

Comments (0)

Files changed (1)

src/efsw/FileWatcherWin32.cpp

 
 	mInitOK = false;
 
-    if (mThread != NULL)    {
-	    mThread->wait();
-    	efSAFE_DELETE( mThread );
-    }
+    efSAFE_DELETE( mThread );
 }
 
 WatchID FileWatcherWin32::addWatch(const std::string& directory, FileWatchListener* watcher, bool recursive)
 	WatcherStructWin32 * watch = CreateWatch( dir.c_str(), recursive,	FILE_NOTIFY_CHANGE_CREATION |
 																		FILE_NOTIFY_CHANGE_SIZE |
 																		FILE_NOTIFY_CHANGE_FILE_NAME |
-																		FILE_NOTIFY_CHANGE_DIR_NAME
-	);
+																		FILE_NOTIFY_CHANGE_DIR_NAME |
+																		FILE_NOTIFY_CHANGE_SIZE |
+																		FILE_NOTIFY_CHANGE_FILE_NAME |
+																		FILE_NOTIFY_CHANGE_DIR_NAME);
 
 	if( NULL == watch )
 	{
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.