fixing old fieldmapper_lookup generator
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 29 Jun 2006 03:22:15 +0000 (03:22 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 29 Jun 2006 03:22:15 +0000 (03:22 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@741 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/System.pm

index 86d340c..e8833ed 100644 (file)
@@ -257,6 +257,13 @@ sub bootstrap_client {
 
 }
 
+sub connected {
+       if (my $con = OpenSRF::Transport::PeerHandle->retrieve) {
+               return 1 if ($con->tcp_connected);
+       }
+       return 0;
+}
+
 sub bootstrap_logger {
        $0 = "Log Server";
        OpenSRF::Utils::LogServer->serve();