renamed finalize to drop in Drop impl for UvUdpSocket

This commit is contained in:
Eric Reed 2013-07-08 14:19:19 -07:00
parent cf23292010
commit 6b2abcaa0f

View File

@ -466,7 +466,7 @@ impl RtioTcpStream for UvTcpStream {
pub struct UvUdpSocket(UdpWatcher);
impl Drop for UvUdpSocket {
fn finalize(&self) {
fn drop(&self) {
rtdebug!("closing udp socket");
let scheduler = Local::take::<Scheduler>();
do scheduler.deschedule_running_task_and_then |_, task| {