~alexlauni/do-plugins/jolicloud

« back to all changes in this revision

Viewing changes to Flickr/src/UploadAction.cs

  • Committer: Alex Launi
  • Date: 2009-06-26 08:51:52 UTC
  • mfrom: (618.1.23 do-plugins)
  • Revision ID: alex.launi@gmail.com-20090626085152-5eodwwbsdeahb11o
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                        }
110
110
                
111
111
                        Services.Application.RunOnThread ( () => {
112
 
                                using (UploadPool uploadQueue = new UploadPool (tags)) {
 
112
                                /* Mono 2.4 bug hack
 
113
                                 * This can't use using () due to some crazy-wierd scoping problem.
 
114
                                 * See https://bugzilla.novell.com/show_bug.cgi?id=516676 for details.
 
115
                                 * 
 
116
                                 */
 
117
                                IEnumerable<IFileItem> temp = uploads;
 
118
                                UploadPool uploadQueue = new UploadPool (tags);
 
119
                                try {
113
120
                                        foreach (IFileItem photo in uploads)
114
121
                                                uploadQueue.EnqueueUpload (photo);
115
 
                                                
 
122
                                        
116
123
                                        uploadQueue.BeginUploads ();
 
124
                                } finally {
 
125
                                        uploadQueue.Dispose ();
117
126
                                }
118
127
                        });
119
128