From 70331bc2881674223b367c27a06eb6f1a1ef7637 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 15 Jun 2006 18:00:19 +0000 Subject: [PATCH] return error when client is disconnected git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@735 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_stack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstack/osrf_stack.c b/src/libstack/osrf_stack.c index 83de64a..ee3254c 100644 --- a/src/libstack/osrf_stack.c +++ b/src/libstack/osrf_stack.c @@ -17,6 +17,8 @@ int osrf_stack_process( transport_client* client, int timeout ) { timeout = 0; } + if( ! client_connected( client ) ) return -1; + return 0; } -- 2.11.0