summary refs log tree commit diff
path: root/src/libstd/sys/windows/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/windows/timer.rs')
-rw-r--r--src/libstd/sys/windows/timer.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/timer.rs b/src/libstd/sys/windows/timer.rs
index c0e67642a64..874838950cd 100644
--- a/src/libstd/sys/windows/timer.rs
+++ b/src/libstd/sys/windows/timer.rs
@@ -26,6 +26,8 @@ use libc;
 use ptr;
 use comm;
 
+use sys::c;
+use sys::fs::FileDesc;
 use sys_common::helper_thread::Helper;
 use prelude::*;
 use io::IoResult;
@@ -78,10 +80,9 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
                             None => {}
                         }
                     }
-                    // See the comment in unix::timer for why we don't have any
-                    // asserts here and why we're likely just leaving timers on
-                    // the floor as we exit.
                     Err(comm::Disconnected) => {
+                        assert_eq!(objs.len(), 1);
+                        assert_eq!(chans.len(), 0);
                         break 'outer;
                     }
                     Err(..) => break