core: Catch specific range error
authorLuis de Bethencourt <luis.debethencourt@collabora.co.uk>
Wed, 11 May 2011 13:03:55 +0000 (15:03 +0200)
committerJens Georg <mail@jensge.org>
Fri, 13 May 2011 09:09:42 +0000 (11:09 +0200)
src/rygel/rygel-http-get.vala

index 1f2c432..4a76cfd 100644 (file)
@@ -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);