return error when client is disconnected
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 Jun 2006 18:00:19 +0000 (18:00 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 Jun 2006 18:00:19 +0000 (18:00 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@735 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_stack.c

index 83de64a..ee3254c 100644 (file)
@@ -17,6 +17,8 @@ int osrf_stack_process( transport_client* client, int timeout ) {
                timeout = 0;
        }
 
+       if( ! client_connected( client ) ) return -1;
+
        return 0;
 }