[f-spot] keep loading
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] keep loading
- Date: Mon, 29 Jun 2009 07:49:32 +0000 (UTC)
commit 437c3c176c2412d60ccc95ef1da87637e68ff358
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 29 09:45:34 2009 +0200
keep loading
a GException on a giostream is fine, as the stream will still be closed asap
src/ImageLoader.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ImageLoader.cs b/src/ImageLoader.cs
index b897974..709bfd5 100644
--- a/src/ImageLoader.cs
+++ b/src/ImageLoader.cs
@@ -114,7 +114,11 @@ namespace FSpot {
{
is_disposed = true;
if (image_stream != null)
- image_stream.Close ();
+ try {
+ image_stream.Close ();
+ } catch (GLib.GException)
+ {
+ }
Close ();
if (thumb != null) {
thumb.Dispose ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]