Browse Source

remove eventQueue for dying thread

new_session_management
Roker 2 years ago
parent
commit
8e25ef6d61
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      server/ev_server.cc

+ 14
- 1
server/ev_server.cc View File

@ -19,6 +19,7 @@
#include <pEp/mime.h>
// libpEpAdapter:
#include <pEp/Adapter.hh>
#include <pEp/status_to_string.hh>
#include <pEp/slurp.hh>
@ -154,7 +155,6 @@ const FunctionMap functions = {
FP( "shutdown", new Func<void, In<JsonAdapter*,ParamFlag::NoInput>>( &JsonAdapter::shutdown_now ) ),
};
bool add_sharks = false;
@ -333,3 +333,16 @@ void ev_server::addSharks()
{
add_sharks = true;
}
void ev_server::thread_init()
{
// nothing to do, yet.
}
void ev_server::thread_done()
{
JsonAdapter::getInstance().connection_close_cb();
pEp::Adapter::session(pEp::Adapter::release);
}

Loading…
Cancel
Save