Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
701b08e7
Commit
701b08e7
authored
Oct 11, 2016
by
Björn Richerzhagen
Browse files
ChurnGenerator without model silently fails
parent
b6d96c48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/churn/DefaultChurnGenerator.java
View file @
701b08e7
...
...
@@ -86,6 +86,10 @@ public class DefaultChurnGenerator implements EventHandler, ChurnGenerator {
@Override
public
void
eventOccurred
(
Object
content
,
int
type
)
{
if
(
this
.
churnModel
==
null
)
{
// fail silently if no churn model is configured.
return
;
}
if
(
type
==
CHURN_EVENT
)
{
ChurnEvent
churnEvent
=
(
ChurnEvent
)
content
;
SimNetworkComponent
net
=
churnEvent
.
host
.
getNetworkComponent
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment