fix tempfile open forever lol
This commit is contained in:
@@ -65,11 +65,14 @@ Public Class clsWorkEmail
|
|||||||
If oTempMailExists = True Then
|
If oTempMailExists = True Then
|
||||||
Try
|
Try
|
||||||
Dim oFS As FileStream = File.OpenRead(CURRENT_TEMP_MAIL_PATH)
|
Dim oFS As FileStream = File.OpenRead(CURRENT_TEMP_MAIL_PATH)
|
||||||
|
oFS.Close()
|
||||||
oTempMailAccessible = True
|
oTempMailAccessible = True
|
||||||
|
Logger.Debug("Temp file is accessible!")
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Logger.Error(ex)
|
Logger.Error(ex)
|
||||||
Logger.Warn($"Could not read the Temp-Mail. Insufficient rights? Message: {ex.Message}")
|
Logger.Warn($"Could not read the Temp-Mail. Insufficient rights? Message: {ex.Message}")
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
If oTempMailAccessible = True Then
|
If oTempMailAccessible = True Then
|
||||||
MessageError = False
|
MessageError = False
|
||||||
If CURRENT_MAIL_SUBJECT.Contains("[PROCESSMANAGER]") Then
|
If CURRENT_MAIL_SUBJECT.Contains("[PROCESSMANAGER]") Then
|
||||||
|
|||||||
Reference in New Issue
Block a user