fix segfault due to pulse input race condition
Merge pull request #1373 from dpoe/stable-1.1

fix segfault due to pulse input race condition