Skip to content
Snippets Groups Projects
Commit 0fc67c89 authored by srosse's avatar srosse
Browse files

no-jira: add a check if the sampler start too quickly

parent 5a30f9a9
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,9 @@ public class ThreadsWebService implements Sampler { ...@@ -83,6 +83,9 @@ public class ThreadsWebService implements Sampler {
@Override @Override
public synchronized void takeSample() { public synchronized void takeSample() {
CoreSpringFactory.getImpl(ThreadInfosManager.class).takeSample(); ThreadInfosManager manager = CoreSpringFactory.getImpl(ThreadInfosManager.class);
if(manager != null) {//check if the manager is loaded
manager.takeSample();
}
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment