mirror of https://github.com/keeweb/keeweb
added a missing check
parent
81d4c5c403
commit
b5fddeb627
|
@ -188,11 +188,17 @@ const YubiKey = {
|
|||
},
|
||||
|
||||
getOtp(serial, entry, callback) {
|
||||
if (this.process) {
|
||||
return callback('Already in progress');
|
||||
}
|
||||
this.aborted = false;
|
||||
|
||||
return Launcher.spawn({
|
||||
cmd: 'ykman',
|
||||
args: ['-d', serial, 'oath', 'code', '--single', entry],
|
||||
noStdOutLogging: true,
|
||||
complete: (err, stdout) => {
|
||||
this.process = null;
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue