From a78487acda5a7ceca7cf0cd2ba0a8fe1f61f8e5e Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 29 Jun 2006 03:22:15 +0000 Subject: [PATCH] fixing old fieldmapper_lookup generator git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@741 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/OpenSRF/System.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/perlmods/OpenSRF/System.pm b/src/perlmods/OpenSRF/System.pm index 86d340c..e8833ed 100644 --- a/src/perlmods/OpenSRF/System.pm +++ b/src/perlmods/OpenSRF/System.pm @@ -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(); -- 2.11.0