[banshee] PlaylistParser: Ensure stream is closed after parsing (bgo#611251)



commit 9cac3d9b5943c3541ee41bf0625d89165c96b28c
Author: Andy Street <mail andystreet me uk>
Date:   Tue Jul 26 17:24:58 2011 +0100

    PlaylistParser: Ensure stream is closed after parsing (bgo#611251)
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../Banshee.Playlists.Formats/PlaylistParser.cs    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
index 9569ed5..6394563 100644
--- a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
@@ -141,6 +141,10 @@ namespace Banshee.Playlists.Formats
                 }
 
                 if (matching_format == null) {
+                    if (partial_read) {
+                        web_stream.Close ();
+                        response.Close ();
+                    }
                     return false;
                 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]