www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / opensource / ftpd / commands.c
index 3fbb095..25185da 100755 (executable)
@@ -1298,7 +1298,10 @@ int parsecmd(char *str)
                 // printf("cmd name = %s, fneedreset=%d, fQuitCmd=%d\n", str, fNeedReset, fQuitCmd);
                 if ((fNeedReset && fQuitCmd) || (!fNeedReset && imageType == PSI_IMAGE_FORMAT && fQuitCmd)) {
                     if (imageType != NO_IMAGE_FORMAT)
+                    {
+                        sleep(2);
                         flashImage(imagePtr, imageType, uploadSize);
+                    }
                     else    // for window ftp to exit in time.
                         sleep(5);
                     if (imagePtr)