[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 03 May 2005 19:22:22 -0000


albertel		Tue May  3 15:22:22 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - don't blow up if a string is stored
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.631 loncom/lonnet/perl/lonnet.pm:1.632
--- loncom/lonnet/perl/lonnet.pm:1.631	Mon May  2 19:34:43 2005
+++ loncom/lonnet/perl/lonnet.pm	Tue May  3 15:22:22 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.631 2005/05/02 23:34:43 albertel Exp $
+# $Id: lonnet.pm,v 1.632 2005/05/03 19:22:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3913,7 +3913,9 @@
         my @del_keys;
         if (ref($current_locks) eq "ARRAY"){
             foreach my $locker (@{$current_locks}) {
-                if ($$locker[0].$$locker[1] eq $symb_crs) {
+                my $compare=$locker;
+                if (ref($locker)) { $compare=join('',@{$locker}) };
+                if ($compare eq $symb_crs) {
                     if (defined($file_name) && ($file_name ne $file)) {
                         push(@new_locks, $what);
                     }