about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-01-24 18:32:23 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-01-24 18:32:23 +0000
commitf223e9b4ee528d3b6da604c2b0486a9384a88805 (patch)
tree43ac0b17b7a9fcf36e786c37891a19ee7e3827fd /Src
parent3be13f0b14401e6b420f7a35c300b485cbc8b97a (diff)
downloadzsh-f223e9b4ee528d3b6da604c2b0486a9384a88805.tar.gz
zsh-f223e9b4ee528d3b6da604c2b0486a9384a88805.tar.xz
zsh-f223e9b4ee528d3b6da604c2b0486a9384a88805.zip
unposted: sched deleted timed function twice
Diffstat (limited to 'Src')
-rw-r--r--Src/Builtins/sched.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Src/Builtins/sched.c b/Src/Builtins/sched.c
index c32a5f219..e4ccd98f6 100644
--- a/Src/Builtins/sched.c
+++ b/Src/Builtins/sched.c
@@ -97,11 +97,8 @@ checksched(void)
 	 */
 	if (schedcmds) {
 	    /*
-	     * We need to delete the function from the list again,
-	     * in case called code rescheduled.  This is almost
-	     * as cheap as checking if it's in the list already.
+	     * We've already delete the function from the list.
 	     */
-	    deltimedfn(checksched);
 	    DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (1)");	    addtimedfn(checksched, schedcmds->time);
 	}
     }