[Opensrf-commits] r1669 - trunk/src/perl/lib/OpenSRF/Transport/SlimJabber (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Feb 28 15:45:04 EST 2009


Author: erickson
Date: 2009-02-28 15:45:00 -0500 (Sat, 28 Feb 2009)
New Revision: 1669

Modified:
   trunk/src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
Log:
don't try to close the socket if it's not there

Modified: trunk/src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
===================================================================
--- trunk/src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm	2009-02-23 06:16:04 UTC (rev 1668)
+++ trunk/src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm	2009-02-28 20:45:00 UTC (rev 1669)
@@ -136,6 +136,7 @@
 
 sub disconnect {
     my $self = shift;
+    return unless $self->socket;
     if($self->tcp_connected) {
         $self->send(JABBER_DISCONNECT); 
         shutdown($self->socket, 2);



More information about the opensrf-commits mailing list