projects
/
platform
/
core
/
context
/
job-scheduler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d964a8
)
ContextPublisher copies the observer list before iterating it
03/140803/1
author
Mu-Woong Lee
<muwoong.lee@samsung.com>
Wed, 26 Jul 2017 10:35:37 +0000
(19:35 +0900)
committer
Mu-Woong Lee
<muwoong.lee@samsung.com>
Wed, 26 Jul 2017 10:35:37 +0000
(19:35 +0900)
Change-Id: I32c4ea2c9bc2d372b5fe8f07d3f522c780dd54c1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/ContextPublisher.cpp
patch
|
blob
|
history
diff --git
a/src/server/ContextPublisher.cpp
b/src/server/ContextPublisher.cpp
index a2a075cfcb41cec8557502a2d3436053621feec0..8d4c783b7932c1268434fa77f4038f4d0f2fb388 100644
(file)
--- a/
src/server/ContextPublisher.cpp
+++ b/
src/server/ContextPublisher.cpp
@@
-97,7
+97,9
@@
const Json::Value& ContextPublisher::getData()
void ContextPublisher::notifyObservers()
{
- for (auto& info : __observers) {
+ auto observers = __observers;
+
+ for (auto& info : observers) {
info.observer->contextDataReady(this, info.data);
}
}