summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-09-08 18:34:03 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-09-08 18:34:03 +0200
commite6457a64d5e096ff13106d246a30a82f342e0a02 (patch)
tree78485cb5cdd80f2ae6e4c888b1851ebebf272549 /lib
parentd6082920ffc97274faf1a742dca074aeb14c1137 (diff)
parent38cd85491378153a46ea57e4001b6bf1e71ce97d (diff)
downloadabrt-e6457a64d5e096ff13106d246a30a82f342e0a02.tar.gz
abrt-e6457a64d5e096ff13106d246a30a82f342e0a02.tar.xz
abrt-e6457a64d5e096ff13106d246a30a82f342e0a02.zip
Merge branch 'master' of git://git.fedorahosted.org/abrt
Diffstat (limited to 'lib')
-rw-r--r--lib/CommLayer/CommLayerInner.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/CommLayer/CommLayerInner.cpp b/lib/CommLayer/CommLayerInner.cpp
index 5450b41..b5b8db7 100644
--- a/lib/CommLayer/CommLayerInner.cpp
+++ b/lib/CommLayer/CommLayerInner.cpp
@@ -44,7 +44,10 @@ void warn_client(const std::string& pMessage)
const char* peer = (ki != s_mapClientID.end() ? ki->second.c_str() : NULL);
pthread_mutex_unlock(&s_map_mutex);
- s_pObs->Warning(pMessage, peer, key);
+ if (peer)
+ s_pObs->Warning(pMessage, peer, key);
+ else /* Bug: someone tries to warn_client() without set_client_name()!? */
+ log("Hmm, stray %s: '%s'", __func__, pMessage.c_str());
}
void update_client(const std::string& pMessage)
@@ -59,5 +62,8 @@ void update_client(const std::string& pMessage)
const char* peer = (ki != s_mapClientID.end() ? ki->second.c_str() : NULL);
pthread_mutex_unlock(&s_map_mutex);
- s_pObs->Status(pMessage, peer, key);
+ if (peer)
+ s_pObs->Status(pMessage, peer, key);
+ else
+ log("Hmm, stray %s: '%s'", __func__, pMessage.c_str());
}