You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.5.1.0 - Fixed issues with the SFTP client and failed screenshot uploads to an SFTP server. A null reference exception error would be thrown during a series of attempts in uploading screenshots that previously failed to upload causing the user to exit the application and start the application again (thereby voiding the failed upload process). It was also discovered that, when screenshots that had previously failed to upload, would upload successfully later (after establishing a successful connection with the SFTP server) the screenshots would be uploaded to the incorrect location. They would be uploaded based on the Folder path and the Macro path instead of simply the Macro path (as they usually do upon successful upload). Now screenshots that previously failed to upload will be uploaded based on the Macro path to keep it consistent with how sucessfully uploaded screenshots are handled.
Copy file name to clipboardExpand all lines: autoscreen.conf
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
# The version of Auto Screen Capture that this configuration file is intended for.
30
30
# Be careful if you change the version number and don't provide the correct definitions for the specific version
31
31
# as some settings will only work with certain versions of the application. Versioning of the configuration file starts with Auto Screen Capture 2.5.0.0 ("Limoncello").
32
-
Version=2.5.0.9
32
+
Version=2.5.1.0
33
33
34
34
# Starting with version 2.5.0.0 the entire configuration file defines all the default application and user settings
35
35
# that were previously hard-coded within the application itself. Now you have the ability to define all of the default settings in a single file!
// Add the screenshot and host to a dictionary of failed uploads so we'll attempt to upload the screenshot for that host later.
1122
+
if(!_failedUploads.ContainsKey(screenshot))
1123
1123
{
1124
-
_log.WriteDebugMessage($"Screenshot ({screenshot.FilePath}) has been added to the dictionary of failed uploads because a connection to the file server could not be established at this time so an attempt to retry the upload will occur in the next capture cycle");
1124
+
_log.WriteDebugMessage($"Screenshot ({screenshot.MacroPath}) has been added to the dictionary of failed uploads because a connection to the file server could not be established at this time so an attempt to retry the upload will occur in the next capture cycle");
_log.WriteDebugMessage($"Screenshot ({path}) deleted locally because of successful upload to file server");
1215
+
_log.WriteDebugMessage($"Screenshot ({screenshot.FilePath}) deleted locally because of successful upload to file server");
1217
1216
}
1218
1217
}
1219
1218
1220
-
// Remove the path from the dictionary of failed uploads if we were successful in uploading the file to the SFTP server.
1221
-
if(_failedUploads.ContainsKey(path))
1219
+
// Remove the screenshot from the dictionary of screenshots that failed to upload if we were successful in uploading the screenshot to the SFTP server.
1220
+
if(_failedUploads.ContainsKey(screenshot))
1222
1221
{
1223
-
_log.WriteDebugMessage($"Screenshot ({path}) has been removed from the dictionary of failed uploads because the upload was successful");
1222
+
_log.WriteDebugMessage($"Screenshot ({screenshot.MacroPath}) has been removed from the dictionary of failed uploads because the upload was successful");
// Add the screenshot filepath and host to a dictionary of failed uploads so we'll attempt to upload the screenshot later.
1235
-
if(!_failedUploads.ContainsKey(path))
1233
+
// Add the screenshot and host to a dictionary of screenshots that failed tp upload so we'll attempt to upload the screenshot later.
1234
+
if(!_failedUploads.ContainsKey(screenshot))
1236
1235
{
1237
-
_log.WriteDebugMessage($"Screenshot ({path}) has been added to the dictionary of failed uploads because the upload failed at this time so an attempt to retry the upload will occur in the next capture cycle");
1236
+
_log.WriteDebugMessage($"Screenshot ({screenshot.MacroPath}) has been added to the dictionary of failed uploads because the upload failed at this time so an attempt to retry the upload will occur in the next capture cycle");
1238
1237
1239
-
_failedUploads.Add(path,host);
1238
+
_failedUploads.Add(screenshot,host);
1240
1239
}
1241
1240
}
1242
1241
1243
-
// We can't simply say that the SFTP client is now disconnected so we just need to nullify the SFTP client.
0 commit comments