[LON-CAPA-cvs] cvs: loncom(version_2_11_X) / lond

raeburn raeburn at source.lon-capa.org
Thu Sep 6 13:52:38 EDT 2018


raeburn		Thu Sep  6 17:52:38 2018 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom	lond 
  Log:
  - For 2.11
    Backport 1.541
  
  
Index: loncom/lond
diff -u loncom/lond:1.489.2.29 loncom/lond:1.489.2.30
--- loncom/lond:1.489.2.29	Sun Apr 29 00:40:49 2018
+++ loncom/lond	Thu Sep  6 17:52:37 2018
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.489.2.29 2018/04/29 00:40:49 raeburn Exp $
+# $Id: lond,v 1.489.2.30 2018/09/06 17:52:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -64,7 +64,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.489.2.29 $'; #' stupid emacs
+my $VERSION='$Revision: 1.489.2.30 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -2429,8 +2429,12 @@
 		}
 		alarm(0);
 		if ($response->is_error()) {
-# FIXME: we should probably clean up here instead of just whine
-		    unlink($transname);
+                    my $reply=&Apache::lonnet::reply("unsub:$fname","$clientname");
+                    &devalidate_meta_cache($fname);
+                    if (-e $transname) {
+                        unlink($transname);
+                    }
+                    unlink($fname);
 		    my $message=$response->status_line;
 		    &logthis("LWP GET: $message for $fname ($remoteurl)");
 		} else {




More information about the LON-CAPA-cvs mailing list