code cleanup
This commit is contained in:
parent
94668c5a99
commit
7be18be494
|
@ -58,16 +58,11 @@ namespace SparkleShare {
|
|||
private DateTime last_found_timestamp;
|
||||
private IntPtr m_stream;
|
||||
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 delegate void FSEventStreamCallback (
|
||||
IntPtr streamRef,
|
||||
IntPtr clientCallBackInfo,
|
||||
int numEvents,
|
||||
IntPtr eventPaths,
|
||||
IntPtr eventFlags,
|
||||
IntPtr eventIds);
|
||||
private delegate void FSEventStreamCallback (IntPtr streamRef, IntPtr clientCallBackInfo,
|
||||
int numEvents, IntPtr eventPaths, IntPtr eventFlags, IntPtr eventIds);
|
||||
|
||||
|
||||
~SparkleMacWatcher ()
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace SparkleShare {
|
|||
"under certain conditions. Please read the GNU GPLv3 for details." + n +
|
||||
n +
|
||||
"Usage: sparkleshare [start|stop|restart]");
|
||||
Console.WriteLine ("SparkleShare is already running.");
|
||||
|
||||
Environment.Exit (-1);
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ namespace SparkleShare {
|
|||
NewVersionEvent (latest_version);
|
||||
else
|
||||
VersionUpToDateEvent ();
|
||||
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -757,9 +757,7 @@ namespace SparkleShare {
|
|||
return true;
|
||||
|
||||
} else {
|
||||
SparkleLogger.LogInfo ("Controller",
|
||||
"Not connecting to https://www.gravatar.com/ due to invalid certificate");
|
||||
|
||||
SparkleLogger.LogInfo ("Controller", "Invalid certificate for https://www.gravatar.com/");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue