projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making demo look nicer.
[pazpar2-moved-to-github.git]
/
src
/
client.c
diff --git
a/src/client.c
b/src/client.c
index
b13a28f
..
a88f6b5
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-1,4
+1,4
@@
-/* $Id: client.c,v 1.14 2007-07-05 18:40:24 adam Exp $
+/* $Id: client.c,v 1.16 2007-07-13 13:16:57 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-249,9
+249,13
@@
int client_show_raw_begin(struct client *cl, int position,
cl->show_raw->esn = 0;
cl->show_raw->esn = 0;
- if (cl->state == Client_Failed || cl->state == Client_Disconnected)
+ if (cl->state == Client_Failed)
{
{
- client_show_raw_error(cl, "not connected");
+ client_show_raw_error(cl, "client failed");
+ }
+ else if (cl->state == Client_Disconnected)
+ {
+ client_show_raw_error(cl, "client disconnected");
}
else
{
}
else
{
@@
-497,9
+501,7
@@
void client_init_response(struct client *cl, Z_APDU *a)
yaz_log(YLOG_DEBUG, "Init response %s", cl->database->database->url);
if (*r->result)
yaz_log(YLOG_DEBUG, "Init response %s", cl->database->database->url);
if (*r->result)
- {
cl->state = Client_Idle;
cl->state = Client_Idle;
- }
else
cl->state = Client_Failed; // FIXME need to do something to the connection
}
else
cl->state = Client_Failed; // FIXME need to do something to the connection
}