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
b37f3e10
Commit
b37f3e10
authored
Jul 01, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delegate stream_msg::abort to the policies
parent
8c1611fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
libcaf_core/src/stream_msg_visitor.cpp
libcaf_core/src/stream_msg_visitor.cpp
+5
-4
No files found.
libcaf_core/src/stream_msg_visitor.cpp
View file @
b37f3e10
...
@@ -96,11 +96,12 @@ auto stream_msg_visitor::operator()(stream_msg::close&) -> result_type {
...
@@ -96,11 +96,12 @@ auto stream_msg_visitor::operator()(stream_msg::close&) -> result_type {
auto
stream_msg_visitor
::
operator
()(
stream_msg
::
abort
&
x
)
->
result_type
{
auto
stream_msg_visitor
::
operator
()(
stream_msg
::
abort
&
x
)
->
result_type
{
CAF_LOG_TRACE
(
CAF_ARG
(
x
));
CAF_LOG_TRACE
(
CAF_ARG
(
x
));
if
(
i_
==
e_
)
{
if
(
i_
!=
e_
&&
self_
->
current_sender
()
!=
nullptr
)
{
CAF_LOG_DEBUG
(
"received stream_msg::abort for unknown stream"
);
i_
->
second
->
abort
(
self_
->
current_sender
(),
x
.
reason
);
return
{
s
ec
::
unexpected_message
,
e
_
};
return
{
s
td
::
move
(
x
.
reason
),
i
_
};
}
}
return
{
std
::
move
(
x
.
reason
),
i_
};
CAF_LOG_DEBUG
(
"received stream_msg::abort for unknown stream"
);
return
{
sec
::
unexpected_message
,
e_
};
}
}
auto
stream_msg_visitor
::
operator
()(
stream_msg
::
ack_open
&
x
)
->
result_type
{
auto
stream_msg_visitor
::
operator
()(
stream_msg
::
ack_open
&
x
)
->
result_type
{
...
...
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