more trigger_advertise_inventory_loop logging
This commit is contained in:
parent
b2ebdd92ba
commit
a1d71e0145
1 changed files with 4 additions and 0 deletions
|
|
@ -1320,6 +1320,9 @@ namespace graphene { namespace net { namespace detail {
|
||||||
void node_impl::trigger_advertise_inventory_loop()
|
void node_impl::trigger_advertise_inventory_loop()
|
||||||
{
|
{
|
||||||
VERIFY_CORRECT_THREAD();
|
VERIFY_CORRECT_THREAD();
|
||||||
|
pid_t tid = gettid();
|
||||||
|
ilog("thread_id trigger_advertise_inventory_loop ${tid}", ("tid", tid));
|
||||||
|
|
||||||
if( _retrigger_advertise_inventory_loop_promise )
|
if( _retrigger_advertise_inventory_loop_promise )
|
||||||
_retrigger_advertise_inventory_loop_promise->set_value();
|
_retrigger_advertise_inventory_loop_promise->set_value();
|
||||||
}
|
}
|
||||||
|
|
@ -4131,6 +4134,7 @@ namespace graphene { namespace net { namespace detail {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
ilog("_advertise_inventory_loop_done.cancel");
|
||||||
_advertise_inventory_loop_done.cancel("node_impl::close()");
|
_advertise_inventory_loop_done.cancel("node_impl::close()");
|
||||||
// cancel() is currently broken, so we need to wake up the task to allow it to finish
|
// cancel() is currently broken, so we need to wake up the task to allow it to finish
|
||||||
trigger_advertise_inventory_loop();
|
trigger_advertise_inventory_loop();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue