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
1791357c
Commit
1791357c
authored
Feb 23, 2015
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error propagation in basp_broker
parent
5d165971
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
libcaf_io/src/basp_broker.cpp
libcaf_io/src/basp_broker.cpp
+4
-2
libcaf_io/src/unpublish.cpp
libcaf_io/src/unpublish.cpp
+2
-1
No files found.
libcaf_io/src/basp_broker.cpp
View file @
1791357c
...
@@ -203,11 +203,13 @@ behavior basp_broker::make_behavior() {
...
@@ -203,11 +203,13 @@ behavior basp_broker::make_behavior() {
auto
ptr
=
actor_cast
<
abstract_actor_ptr
>
(
whom
);
auto
ptr
=
actor_cast
<
abstract_actor_ptr
>
(
whom
);
if
(
port
==
0
)
{
if
(
port
==
0
)
{
if
(
!
remove_published_actor
(
ptr
))
{
if
(
!
remove_published_actor
(
ptr
))
{
return
make_message
(
error_atom
::
value
,
"no mapping found"
);
return
make_message
(
error_atom
::
value
,
request_id
,
"no mapping found"
);
}
}
}
else
{
}
else
{
if
(
!
remove_published_actor
(
ptr
,
port
))
{
if
(
!
remove_published_actor
(
ptr
,
port
))
{
return
make_message
(
error_atom
::
value
,
"port not bound to actor"
);
return
make_message
(
error_atom
::
value
,
request_id
,
"port not bound to actor"
);
}
}
}
}
return
make_message
(
ok_atom
::
value
,
request_id
);
return
make_message
(
ok_atom
::
value
,
request_id
);
...
...
libcaf_io/src/unpublish.cpp
View file @
1791357c
...
@@ -37,8 +37,9 @@ void unpublish_impl(const actor_addr& whom, uint16_t port, bool block_caller) {
...
@@ -37,8 +37,9 @@ void unpublish_impl(const actor_addr& whom, uint16_t port, bool block_caller) {
[](
ok_atom
)
{
[](
ok_atom
)
{
// ok, basp_broker is done
// ok, basp_broker is done
},
},
[
](
error_atom
,
const
std
::
string
&
)
{
[
&
](
error_atom
,
const
std
::
string
&
err
)
{
// ok, basp_broker is done
// ok, basp_broker is done
CAF_LOGF_ERROR
(
err
<<
", "
<<
CAF_ARG
(
port
)
<<
", "
<<
CAF_TSARG
(
whom
));
}
}
);
);
}
else
{
}
else
{
...
...
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