[LON-CAPA-cvs] cvs: loncom / LondConnection.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 26 Jan 2006 21:34:26 -0000


albertel		Thu Jan 26 16:34:26 2006 EDT

  Modified files:              
    /loncom	LondConnection.pm 
  Log:
  - the return value of chomp isn't the unchomped strign
  
  
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.37 loncom/LondConnection.pm:1.38
--- loncom/LondConnection.pm:1.37	Fri May 27 17:49:18 2005
+++ loncom/LondConnection.pm	Thu Jan 26 16:34:25 2006
@@ -1,7 +1,7 @@
 #   This module defines and implements a class that represents
 #   a connection to a lond daemon.
 #
-# $Id: LondConnection.pm,v 1.37 2005/05/27 21:49:18 albertel Exp $
+# $Id: LondConnection.pm,v 1.38 2006/01/26 21:34:25 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -508,7 +508,8 @@
 	    return 0;
 
 	} elsif ($self->{State} eq "ReadingVersionString") {
-	    $self->{LondVersion}       = chomp($self->{TransactionReply});
+	    chomp($self->{TransactionReply});
+	    $self->{LondVersion}       = $self->{TransactionReply};
 	    $self->Transition("SetHost");
 	    $self->{InformReadable}    = 0;
 	    $self->{InformWritable}    = 1;