更新复位isFileMode的逻辑,修复无缓存文件时不能复位的问题
This commit is contained in:
parent
27c143cf2e
commit
d2fa357d67
@ -474,8 +474,6 @@ static void upSendFile_thread_entry(void *parameter)
|
||||
*/
|
||||
void upSendFile(const char *f, int index)
|
||||
{
|
||||
resetTM();
|
||||
isFileMode=0;//逻辑不是很准确
|
||||
static FILE_INFO info;
|
||||
rt_memset(&info, 0, sizeof(FILE_INFO));
|
||||
strcpy(info.fname, f);
|
||||
@ -508,7 +506,8 @@ void d_upSendFile(int argc, char **argv)
|
||||
*/
|
||||
void getAndSendFile()
|
||||
{
|
||||
|
||||
resetTM();
|
||||
isFileMode=0;//逻辑不是很准确
|
||||
//优先发送未达指定大小的文件
|
||||
char fnow[50];
|
||||
getLstCacheFileName(fnow);
|
||||
|
Loading…
Reference in New Issue
Block a user