From c03d6a1ec3155b8e2e2a96cd21a9591cf187c275 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 2 Mar 2015 09:25:33 +0000 Subject: [PATCH] drive: fix crash on failed to update remote mtime - fixes #36 --- drive/drive.go | 1 + 1 file changed, 1 insertion(+) diff --git a/drive/drive.go b/drive/drive.go index ae43e7150..9cae15742 100644 --- a/drive/drive.go +++ b/drive/drive.go @@ -900,6 +900,7 @@ func (o *FsObjectDrive) SetModTime(modTime time.Time) { if err != nil { fs.Stats.Error() fs.Log(o, "Failed to update remote mtime: %s", err) + return } // Update info from read data o.setMetaData(info)