Skip to content
Snippets Groups Projects
Commit ec1e36ca authored by rswindell's avatar rswindell
Browse files

Bug-fix in receive_thread(): don't set inprogress flag to false until the

thread is done using the pointers to variable in the ctrl_thread (e.g. user).
This should fix the exception on line 1790.
parent d41e1f3f
Branches
Tags
No related merge requests found
......@@ -1707,8 +1707,6 @@ static void receive_thread(void* arg)
YIELD();
}
if(server_socket!=INVALID_SOCKET && !terminate_server)
*xfer.inprogress=FALSE;
fclose(fp);
ftp_close_socket(xfer.data_sock,__LINE__);
......@@ -1823,6 +1821,9 @@ static void receive_thread(void* arg)
sockprintf(xfer.ctrl_sock,"226 Upload complete (%lu cps).",cps);
}
if(server_socket!=INVALID_SOCKET && !terminate_server)
*xfer.inprogress=FALSE;
thread_down();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment