|
@@ -59,11 +59,12 @@ PStatThread(Thread *thread, PStatClient *client) {
|
|
|
int thread_index = thread->get_pstats_index();
|
|
int thread_index = thread->get_pstats_index();
|
|
|
if (thread_index != -1) {
|
|
if (thread_index != -1) {
|
|
|
(*this) = PStatThread(client, thread_index);
|
|
(*this) = PStatThread(client, thread_index);
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- // This is the first time we have encountered this current Thread.
|
|
|
|
|
- // Make a new PStatThread object for it.
|
|
|
|
|
- (*this) = client->make_thread(thread);
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // This is the first time we have encountered this current Thread.
|
|
|
|
|
+ // Make a new PStatThread object for it.
|
|
|
|
|
+ (*this) = client->make_thread(thread);
|
|
|
|
|
+ }
|
|
|
#else
|
|
#else
|
|
|
_client = (PStatClient *)NULL;
|
|
_client = (PStatClient *)NULL;
|
|
|
_index = 0;
|
|
_index = 0;
|