mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
remove ftp code
This commit is contained in:
parent
6b32d503e2
commit
d23703ff9a
4 changed files with 5 additions and 80 deletions
|
@ -79,7 +79,6 @@ class CurlSession {
|
|||
this.event_loop = setInterval(() => {
|
||||
let libcurl_active = _session_get_active(this.session_ptr);
|
||||
if (libcurl_active || this.active_requests) {
|
||||
console.log("test");
|
||||
_session_perform(this.session_ptr);
|
||||
}
|
||||
else {
|
||||
|
@ -147,12 +146,12 @@ class CurlSession {
|
|||
headers_callback(stream);
|
||||
}
|
||||
|
||||
if (error != 0) {
|
||||
try {
|
||||
stream_controller.close();
|
||||
}
|
||||
catch {}
|
||||
console.log(error);
|
||||
|
||||
try {
|
||||
stream_controller.close();
|
||||
}
|
||||
catch {}
|
||||
end_callback(error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue