code cleanup
This commit is contained in:
parent
94668c5a99
commit
7be18be494
|
@ -58,16 +58,11 @@ namespace SparkleShare {
|
||||||
private DateTime last_found_timestamp;
|
private DateTime last_found_timestamp;
|
||||||
private IntPtr m_stream;
|
private IntPtr m_stream;
|
||||||
private FSEventStreamCallback m_callback; // need to keep a reference around so that it isn't GC'ed
|
private FSEventStreamCallback m_callback; // need to keep a reference around so that it isn't GC'ed
|
||||||
private static readonly IntPtr kCFRunLoopDefaultMode = (new NSString ("kCFRunLoopDefaultMode")).Handle;
|
private static readonly IntPtr kCFRunLoopDefaultMode = new NSString ("kCFRunLoopDefaultMode").Handle;
|
||||||
private ulong kFSEventStreamEventIdSinceNow = 0xFFFFFFFFFFFFFFFFUL;
|
private ulong kFSEventStreamEventIdSinceNow = 0xFFFFFFFFFFFFFFFFUL;
|
||||||
|
|
||||||
private delegate void FSEventStreamCallback (
|
private delegate void FSEventStreamCallback (IntPtr streamRef, IntPtr clientCallBackInfo,
|
||||||
IntPtr streamRef,
|
int numEvents, IntPtr eventPaths, IntPtr eventFlags, IntPtr eventIds);
|
||||||
IntPtr clientCallBackInfo,
|
|
||||||
int numEvents,
|
|
||||||
IntPtr eventPaths,
|
|
||||||
IntPtr eventFlags,
|
|
||||||
IntPtr eventIds);
|
|
||||||
|
|
||||||
|
|
||||||
~SparkleMacWatcher ()
|
~SparkleMacWatcher ()
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace SparkleShare {
|
||||||
"under certain conditions. Please read the GNU GPLv3 for details." + n +
|
"under certain conditions. Please read the GNU GPLv3 for details." + n +
|
||||||
n +
|
n +
|
||||||
"Usage: sparkleshare [start|stop|restart]");
|
"Usage: sparkleshare [start|stop|restart]");
|
||||||
Console.WriteLine ("SparkleShare is already running.");
|
|
||||||
Environment.Exit (-1);
|
Environment.Exit (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ namespace SparkleShare {
|
||||||
NewVersionEvent (latest_version);
|
NewVersionEvent (latest_version);
|
||||||
else
|
else
|
||||||
VersionUpToDateEvent ();
|
VersionUpToDateEvent ();
|
||||||
|
|
||||||
} catch {
|
} catch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -757,9 +757,7 @@ namespace SparkleShare {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
SparkleLogger.LogInfo ("Controller",
|
SparkleLogger.LogInfo ("Controller", "Invalid certificate for https://www.gravatar.com/");
|
||||||
"Not connecting to https://www.gravatar.com/ due to invalid certificate");
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue