From: erickson Date: Thu, 15 Jun 2006 18:00:19 +0000 (+0000) Subject: return error when client is disconnected X-Git-Tag: osrf_rel_2_0_1~1138 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=70331bc2881674223b367c27a06eb6f1a1ef7637;p=OpenSRF.git return error when client is disconnected git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@735 9efc2488-bf62-4759-914b-345cdb29e865 --- 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; }