mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[sftp] Restart connection and add / in case of error
This commit is contained in:
parent
285fe378b5
commit
e53f7d8286
@ -638,7 +638,7 @@ check_multi_info(GlobalInfo *g)
|
|||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
|
|
||||||
if (res == CURLE_REMOTE_FILE_NOT_FOUND) {
|
if (res == CURLE_REMOTE_FILE_NOT_FOUND || res == CURLE_SSH) {
|
||||||
ftp = (struct ftpes_connection_info *)conn->info;
|
ftp = (struct ftpes_connection_info *)conn->info;
|
||||||
|
|
||||||
if (ftp && !ftp->dir) {
|
if (ftp && !ftp->dir) {
|
||||||
|
Loading…
Reference in New Issue
Block a user