From df0466e3deda5689bb8cd2f3337097e6d0fef230 Mon Sep 17 00:00:00 2001
From: Mrowqa <artur.jamro@gmail.com>
Date: Wed, 1 Jan 2014 23:53:52 +0100
Subject: [PATCH] Coverity CID 992486: Fixed killing random thread
---
src/apps/cdplayer/CDDBSupport.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/apps/cdplayer/CDDBSupport.cpp b/src/apps/cdplayer/CDDBSupport.cpp
index d108901..1e5c9e7 100644
a
|
b
|
CDDBQuery::CDDBQuery(const char *server, int32 port)
|
459 | 459 | fServerName(server), |
460 | 460 | fPort(port), |
461 | 461 | fConnected(false), |
462 | | fState(kInitial) |
| 462 | fThread(0), |
| 463 | fState(kInitial), |
| 464 | fResult(B_OK) |
463 | 465 | { |
464 | 466 | } |
465 | 467 | |
466 | 468 | |
467 | 469 | CDDBQuery::~CDDBQuery() |
468 | 470 | { |
469 | | kill_thread(fThread); |
| 471 | if (fThread > 0) |
| 472 | kill_thread(fThread); |
470 | 473 | } |
471 | 474 | |
472 | 475 | |