comparison src/ex_docmd.c @ 17708:10696f279e20 v8.1.1851

patch 8.1.1851: crash when sound_playfile() callback plays sound commit https://github.com/vim/vim/commit/28e67e0c1496b7bb166a0acfb176690f219101ca Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 15 23:05:49 2019 +0200 patch 8.1.1851: crash when sound_playfile() callback plays sound Problem: Crash when sound_playfile() callback plays sound. Solution: Invoke callback later from event loop.
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Aug 2019 23:15:04 +0200
parents 9efb4dda9720
children 316ae5631c1d
comparison
equal deleted inserted replaced
17707:bf211be8ffd1 17708:10696f279e20
7690 if (due_time > 0 && due_time < wait_now) 7690 if (due_time > 0 && due_time < wait_now)
7691 wait_now = due_time; 7691 wait_now = due_time;
7692 } 7692 }
7693 #endif 7693 #endif
7694 #ifdef FEAT_JOB_CHANNEL 7694 #ifdef FEAT_JOB_CHANNEL
7695 if (has_any_channel() && wait_now > 100L) 7695 if (has_any_channel() && wait_now > 20L)
7696 wait_now = 100L; 7696 wait_now = 20L;
7697 #endif
7698 #ifdef FEAT_SOUND
7699 if (has_any_sound_callback() && wait_now > 20L)
7700 wait_now = 20L;
7697 #endif 7701 #endif
7698 ui_delay(wait_now, TRUE); 7702 ui_delay(wait_now, TRUE);
7699 #ifdef FEAT_JOB_CHANNEL 7703 #ifdef FEAT_JOB_CHANNEL
7700 if (has_any_channel()) 7704 if (has_any_channel())
7701 ui_breakcheck_force(TRUE); 7705 ui_breakcheck_force(TRUE);