We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e56d9ed commit 9de8592Copy full SHA for 9de8592
src/DataModelBase/Utilities.cpp
@@ -62,7 +62,7 @@ bool Utilities::KillThread(Thread_args* &args){
62
63
bool ret=false;
64
65
- if(args){
+ if(args && args->thread){
66
67
args->running=false;
68
args->kill=true;
@@ -78,7 +78,7 @@ bool Utilities::KillThread(Thread_args* &args){
78
}
79
80
bool Utilities::KillThread(std::string ThreadName){
81
-
+ if(Threads.count(ThreadName) == 0 ) return false;
82
return KillThread(Threads[ThreadName]);
83
84
0 commit comments