Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geithner, Thomas
desk-control
Commits
756b0e08
Commit
756b0e08
authored
Oct 11, 2017
by
Mall, Anon
Browse files
implemented destructor for coap frontend
parent
e1ea4b5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/coap-frontend.cpp
View file @
756b0e08
...
...
@@ -49,6 +49,8 @@ CoapFrontend::CoapFrontend(Controller &controller, uint16_t port) : Frontend(con
m_ctxWait
.
notify_all
();
}
void
CoapFrontend
::
s_get_index
(
coap_context_t
*
ctx
UNUSED_PARAM
,
struct
coap_resource_t
*
resource
UNUSED_PARAM
,
const
coap_endpoint_t
*
local_interface
UNUSED_PARAM
,
...
...
@@ -476,6 +478,11 @@ finish:
CoapFrontend
::~
CoapFrontend
()
{
for
(
auto
it
=
s_callbackMap
.
begin
();
it
!=
s_callbackMap
.
end
();
++
it
){
if
(
it
->
second
==
this
){
s_callbackMap
.
erase
(
it
);
}
}
//cout << __func__ << ": #1" << endl;
/*
...
...
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