Skip to content

Commit

Permalink
renamed finalize to drop in Drop impl for UvUdpSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Reed committed Jul 8, 2013
1 parent cf23292 commit 6b2abca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/rt/uv/uvio.rs
Expand Up @@ -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| {
Expand Down

0 comments on commit 6b2abca

Please sign in to comment.