mac invites: don't check certificate

This commit is contained in:
Hylke Bons 2012-07-15 15:59:04 +02:00
parent 211394649f
commit 7fb8cc587f
4 changed files with 119 additions and 126 deletions

View file

@ -56,8 +56,7 @@ namespace SparkleLib {
{ {
this.is_connecting = true; this.is_connecting = true;
this.thread = new Thread ( this.thread = new Thread (() => {
new ThreadStart (delegate {
int port = Server.Port; int port = Server.Port;
if (port < 0) if (port < 0)
@ -188,8 +187,7 @@ namespace SparkleLib {
} }
} }
} }
}) });
);
this.thread.Start (); this.thread.Start ();
} }

View file

@ -154,11 +154,7 @@ namespace SparkleLib {
ChangeSets = GetChangeSets (); ChangeSets = GetChangeSets ();
SparkleWatcherFactory.CreateWatcher (this); SparkleWatcherFactory.CreateWatcher (this);
new Thread ( new Thread (() => CreateListener ()).Start ();
new ThreadStart (delegate {
CreateListener ();
})
).Start ();
this.remote_timer.Elapsed += delegate { this.remote_timer.Elapsed += delegate {
bool time_to_poll = (DateTime.Compare (this.last_poll, bool time_to_poll = (DateTime.Compare (this.last_poll,
@ -382,12 +378,11 @@ namespace SparkleLib {
if (this.listener.IsConnected) { if (this.listener.IsConnected) {
this.poll_interval = PollInterval.Long; this.poll_interval = PollInterval.Long;
new Thread ( new Thread (() => {
new ThreadStart (delegate {
if (!is_syncing && !HasLocalChanges && HasRemoteChanges) if (!is_syncing && !HasLocalChanges && HasRemoteChanges)
SyncDownBase (); SyncDownBase ();
})
).Start (); }).Start ();
} }
this.listener.Connected += ListenerConnectedDelegate; this.listener.Connected += ListenerConnectedDelegate;

View file

@ -65,7 +65,7 @@ case $1 in
invite=`date -u +%N` invite=`date -u +%N`
open=`echo $2 | sed s/sparkleshare:/https:/` open=`echo $2 | sed s/sparkleshare:/https:/`
open=`echo $open | sed s/sparkleshare-unsafe:/http:/` open=`echo $open | sed s/sparkleshare-unsafe:/http:/`
curl -o ~/SparkleShare/$invite.xml $open --insecure curl --insecure --output ~/SparkleShare/$invite.xml $open
;; ;;
*) *)
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help