Merge branch 'master' of github.com:actix/actix-web

This commit is contained in:
realaravinth 2020-12-13 10:33:23 +05:30
commit c7637242db
No known key found for this signature in database
GPG Key ID: AD9F0F08E855ED88
2 changed files with 2 additions and 6 deletions

View File

@ -182,9 +182,7 @@ impl Inner {
self.len += data.len(); self.len += data.len();
self.items.push_back(data); self.items.push_back(data);
self.need_read = self.len < MAX_BUFFER_SIZE; self.need_read = self.len < MAX_BUFFER_SIZE;
if let Some(task) = self.task.take() { self.task.wake();
task.wake()
}
} }
#[cfg(test)] #[cfg(test)]

View File

@ -725,9 +725,7 @@ impl Drop for Safety {
if Rc::strong_count(&self.payload) != self.level { if Rc::strong_count(&self.payload) != self.level {
self.clean.set(true); self.clean.set(true);
} }
if let Some(task) = self.task.take() { self.task.wake();
task.wake()
}
} }
} }