Explicitly close the input stream.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 18 Jan 2009 19:28:09 +0000 (19:28 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 18 Jan 2009 19:28:09 +0000 (19:28 +0000)
svn path=/trunk/; revision=454

src/rygel/rygel-interactive-response.vala

index 7060b6b..d0c52d7 100644 (file)
@@ -107,6 +107,15 @@ public class Rygel.InteractiveResponse : Rygel.HTTPResponse {
         }
 
         this.push_data (this.buffer, this.length);
+
+        try  {
+            input_stream.close (null);
+        } catch (Error err) {
+            warning ("Failed to close stream to URI %s: %s\n",
+                     this.file.get_uri (),
+                     err.message);
+        }
+
         this.end (false, Soup.KnownStatusCode.NONE);
     }
 }