libssh: unstick SFTP transfers when done event-based

Test 604 and 606 (at least).

Closes #8490
This commit is contained in:
Daniel Stenberg 2022-03-21 17:39:49 +01:00
parent 5bb4d3ec06
commit 59c44c76de
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2063,6 +2063,9 @@ static int myssh_getsock(struct Curl_easy *data,
if(conn->waitfor & KEEP_SEND)
bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
if(!conn->waitfor)
bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
return bitmap;
}