[rygel] core: Catch specific range error



commit 9327980ed17803b31ad323410828f27a6eb0ed22
Author: Luis de Bethencourt <luis debethencourt collabora co uk>
Date:   Wed May 11 15:03:55 2011 +0200

    core: Catch specific range error

 src/rygel/rygel-http-get.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala
index 1f2c432..4a76cfd 100644
--- a/src/rygel/rygel-http-get.vala
+++ b/src/rygel/rygel-http-get.vala
@@ -144,7 +144,7 @@ internal class Rygel.HTTPGet : HTTPRequest {
             } else if (need_byte_seek) {
                 this.seek = new HTTPByteSeek (this);
             }
-        } catch (Error error) {
+        } catch (HTTPSeekError.OUT_OF_RANGE error) {
             this.server.unpause_message (this.msg);
             this.end (Soup.KnownStatusCode.REQUESTED_RANGE_NOT_SATISFIABLE);
 



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