async하게 수정
This commit is contained in:
@@ -1067,7 +1067,7 @@ namespace FluentFTP {
|
||||
// seek to required offset
|
||||
fileData.Position = offset;
|
||||
|
||||
} catch (Exception ex2) {
|
||||
} catch (Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1208,12 +1208,15 @@ namespace FluentFTP {
|
||||
Stream upStream = null;
|
||||
try {
|
||||
long offset = 0;
|
||||
bool checkFileExistsAgain = false;
|
||||
//bool checkFileExistsAgain = false;
|
||||
|
||||
// check if the file exists, and skip, overwrite or append
|
||||
if (existsMode == FtpExists.NoCheck) {
|
||||
checkFileExistsAgain = true;
|
||||
} else {
|
||||
if (existsMode == FtpExists.NoCheck)
|
||||
{
|
||||
//checkFileExistsAgain = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!fileExistsKnown) {
|
||||
fileExists = await FileExistsAsync(remotePath);
|
||||
}
|
||||
@@ -1254,7 +1257,7 @@ namespace FluentFTP {
|
||||
// seek to required offset
|
||||
fileData.Position = offset;
|
||||
|
||||
} catch (Exception ex2) {
|
||||
} catch (Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -313,7 +313,7 @@ namespace FluentFTP {
|
||||
try {
|
||||
stream.Listen(m_stream.LocalEndPoint.Address, port);
|
||||
success = true;
|
||||
} catch (SocketException se) {
|
||||
} catch (SocketException) {
|
||||
#if NETFX
|
||||
// Already in use
|
||||
if (se.ErrorCode != 10048)
|
||||
@@ -448,7 +448,7 @@ namespace FluentFTP {
|
||||
stream.Listen(m_stream.LocalEndPoint.Address, port);
|
||||
success = true;
|
||||
}
|
||||
catch (SocketException se)
|
||||
catch (SocketException)
|
||||
{
|
||||
#if NETFX
|
||||
// Already in use
|
||||
|
||||
Reference in New Issue
Block a user