[chronojump] Fixed: Bug 607443 Server sometimes don't upload tests the chane is made on server, not on client



commit ff2c11c59f4559b71196c50f7bd86eacaf87f679
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jan 20 12:35:15 2010 +0100

    Fixed:  Bug 607443 Server sometimes don't upload tests
    the chane is made on server, not on client

 chronojump_server/bin/chronojumpServer.dll  |  Bin 276480 -> 276480 bytes
 chronojump_server/chronojumpServerCSharp.cs |   10 ++++++----
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/chronojump_server/bin/chronojumpServer.dll b/chronojump_server/bin/chronojumpServer.dll
index 4060ed9..27245ad 100755
Binary files a/chronojump_server/bin/chronojumpServer.dll and b/chronojump_server/bin/chronojumpServer.dll differ
diff --git a/chronojump_server/chronojumpServerCSharp.cs b/chronojump_server/chronojumpServerCSharp.cs
index d1d3f30..8f0e011 100755
--- a/chronojump_server/chronojumpServerCSharp.cs
+++ b/chronojump_server/chronojumpServerCSharp.cs
@@ -124,8 +124,12 @@ public class ChronojumpServer {
 		Console.WriteLine(mySession.ToString());
 	
 		int id = mySession.InsertAtDB(false, Constants.SessionTable);
-
-		File.Create("need-to-update-r-graphs");
+	
+		try {
+			File.Create("need-to-update-r-graphs");
+		} catch {
+			//file exists and cannot be overwritten
+		}
 	
 		return id; //uniqueID of person at server
 	}
@@ -135,8 +139,6 @@ public class ChronojumpServer {
 	{
 		SqliteServerSession.UpdateUploadingState(sessionID, state);
 		
-		File.Create("need-to-update-r-graphs");
-			
 		return 1;
 	}
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]