summaryrefslogtreecommitdiff
path: root/community/gshare/monofix.patch
blob: 0888c3c3e9e2324a37dbcebcc3f95adb5275908a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
diff -rN -u old-gshare/src/gshared/daemon.cs new-gshare/src/gshared/daemon.cs
--- old-gshare/src/gshared/daemon.cs	2006-09-16 20:31:47.881173352 +0100
+++ new-gshare/src/gshared/daemon.cs	2006-09-16 20:31:47.959161496 +0100
@@ -308,11 +308,11 @@
             if (reason == FTPServerShutdownReason.Error)
             {
                 Log.ErrorMessage("Shutting down FTP server because of an error");
-                Utility.InvokeLater(delegate
+                Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                     { 
                         Utility.ShowGenericFatalErrorDialog(); 
                         Shutdown(); 
-                    });
+                    }));
             }
         }
         
@@ -367,24 +367,24 @@
             {
                 case ClientState.Collision:
                     /*TODO figure out what to do*/
-                    Utility.InvokeLater(delegate
+                    Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                         { 
                             StopDaemon();
-                        });
+                        }));
                     break;
                 case ClientState.Failure:
                     Log.ErrorMessage("Zeroconf client failed to register");
-                    Utility.InvokeLater(delegate
+                    Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                         {
                             Utility.ShowCannotPublishServiceDialog(); 
                             Shutdown(); 
-                        });
+                        }));
                     break;
                 case ClientState.Running:
-                    Utility.InvokeLater(delegate
+                    Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                         {
                             PublishFTPServer(); 
-                        });
+                        }));
                     break;
             }
 
@@ -410,19 +410,19 @@
                         iAvahiServiceName = EntryGroup.GetAlternativeServiceName(iAvahiServiceName);
                     }
                     
-                    Utility.InvokeLater(delegate
+                    Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                         {
                             StartZeroConf(iFtpServer.ServerPort);
-                        });
+                        }));
                     
                     break;
                 case EntryGroupState.Failure:
                     Log.ErrorMessage("Failed to publish FTP service on zeroconf network");
-                    Utility.InvokeLater(delegate
+                    Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
                         {
                             Utility.ShowCannotPublishServiceDialog();
                             Shutdown(); 
-                        });
+                        }));
                     break;
 
                 case EntryGroupState.Established:
@@ -460,11 +460,11 @@
                                     ex.Message,
                                     ex.StackTrace);
                                 
-                Utility.InvokeLater(delegate 
+                Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate 
                     {
                         Utility.ShowCannotPublishServiceDialog(); 
                         Shutdown(); 
-                    });
+                    }));
                 
             }