summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xfns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 7fd8119a5f3..e412cc568c6 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -10111,7 +10111,11 @@ void
cancel_busy_cursor ()
{
if (busy_cursor_atimer)
- cancel_atimer (busy_cursor_atimer);
+ {
+ cancel_atimer (busy_cursor_atimer);
+ busy_cursor_atimer = NULL;
+ }
+
if (busy_cursor_shown_p)
hide_busy_cursor ();
}