diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-18 09:53:30 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-18 09:53:30 +0200 |
commit | 354ac4e9edd7db050e2b71a34a01c5b8b3100607 (patch) | |
tree | bf099ac141357e663bf6dd92f2aba205c92ad54f /libpiano/src/xml.c | |
parent | f43699482a0a5921cb4cdc4bf110242278209ada (diff) | |
download | pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.gz pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.bz2 pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.zip |
piano: New error code OUT_OF_SYNC
Error code indicates that the system's time is "out of sync". Maybe the
"sync" response timestamp should be checked *before* errors like this
happen...
Thanks to Jason for pointing this out.
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r-- | libpiano/src/xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index b02df5d..5045440 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -79,6 +79,8 @@ static void PianoXmlIsFaultCb (const char *key, const ezxml_t value, } else if (strcmp ("STATION_DOES_NOT_EXIST", matchStart) == 0) { *ret = PIANO_RET_STATION_NONEXISTENT; + } else if (strcmp ("OUT_OF_SYNC", matchStart) == 0) { + *ret = PIANO_RET_OUT_OF_SYNC; } else { *ret = PIANO_RET_ERR; printf (PACKAGE ": Unknown error %s in %s\n", |