--- rxvt-unicode/src/iom.C 2003/11/25 15:25:17 1.2 +++ rxvt-unicode/src/iom.C 2003/11/25 17:11:33 1.3 @@ -41,6 +41,8 @@ { if (iom_valid) iom.unreg (this); + + at = TSTAMP_CANCEL; } io_watcher::~io_watcher () @@ -102,9 +104,8 @@ // call it w->call (*w); - // re-add it if necessary - if (w->at >= 0) - reg (w); + if (w->at < 0) + unreg (w); } struct timeval to;