[chronojump] Disabled server connection at start:boot fast now!
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Disabled server connection at start:boot fast now!
- Date: Mon, 10 Jun 2013 08:51:38 +0000 (UTC)
commit ea072d8675b5f274e9b3b85a51892f53da13458e
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jun 10 10:50:42 2013 +0200
Disabled server connection at start:boot fast now!
src/chronojump.cs | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index c725874..29ab0c5 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -291,14 +291,21 @@ Log.WriteLine("doing backup");
versionAvailable = "";
pingStart = false;
pingEnd = false;
-
- thread = new Thread(new ThreadStart(findVersion));
- GLib.Idle.Add (new GLib.IdleHandler (PulseGTKPing));
- thread.Start();
-
- //wait until pinging process start
- while(! pingStart) {
- }
+
+ /* disable server connection on start until server is not working on windows again */
+ bool connectServerAtStart = false;
+ if(connectServerAtStart) {
+ thread = new Thread(new ThreadStart(findVersion));
+ GLib.Idle.Add (new GLib.IdleHandler (PulseGTKPing));
+ thread.Start();
+
+ //wait until pinging process start
+ while(! pingStart) {
+ }
+ }
+ else
+ on_find_version_cancelled(new object(), new EventArgs());
+
allSQLCallsDoneOnSqliteThingsThread = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]