stop clipboard monitor before starting it again

This commit is contained in:
siikamiika 2020-02-09 22:41:20 +02:00
parent d4e74a0572
commit 4508efb9a6

View File

@ -30,6 +30,8 @@ class ClipboardMonitor {
}
start() {
this.stop();
// The token below is used as a unique identifier to ensure that a new clipboard monitor
// hasn't been started during the await call. The check below the await apiClipboardGet()
// call will exit early if the reference has changed.