Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
d71bfc8c
Commit
d71bfc8c
authored
Jun 18, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugfix to segfault in `peer::dispose`
This patch is a followup for d78fe26 that didn't quite fix the bug.
parent
5833b523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/peer.cpp
src/peer.cpp
+6
-2
No files found.
src/peer.cpp
View file @
d71bfc8c
...
...
@@ -379,8 +379,12 @@ void peer::enqueue(msg_hdr_cref hdr, const any_tuple& msg) {
void
peer
::
dispose
()
{
CPPA_LOG_TRACE
(
CPPA_ARG
(
this
));
if
(
m_node
)
parent
()
->
get_namespace
().
erase
(
*
m_node
);
parent
()
->
del_peer
(
this
);
// if m_node is nullptr, this peer has never been registered to the MM
// and does not have any proxies attached to it
if
(
m_node
)
{
parent
()
->
get_namespace
().
erase
(
*
m_node
);
parent
()
->
del_peer
(
this
);
}
delete
this
;
}
...
...
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