Skip to content

Commit

Permalink
Merge pull request #644 from sm-shaw/643
Browse files Browse the repository at this point in the history
Add check to vurun for pre-existing threads
  • Loading branch information
abondvt89 committed Nov 28, 2023
2 parents 1cd2412 + b3c274d commit d662d78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/generic/gencli.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,11 @@ proc deleteschema {} {
}

proc vurun {} {
global threadscreated
if { ![ info exists threadscreated ] && [expr [ llength [ threadnames_without_tcthread ] ] - 1 ] > 0} {
putscli "Error: Cannot call vurun with Virtual Users already active"
return
}
global _ED opmode jobid

set jobid [guid]
Expand Down

0 comments on commit d662d78

Please sign in to comment.