Skip to content

Commit 0c4fccc

Browse files
committed
Optimization
1 parent 120085e commit 0c4fccc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

swoole.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@ void php_swoole_register_rshutdown_callback(swCallback cb, void *private_data)
316316
rshutdown_callbacks.append(cb, private_data);
317317
}
318318

319-
static void execute_rshutdown_callback()
320-
{
321-
rshutdown_callbacks.execute();
322-
}
323-
324319
static void fatal_error(int code, const char *format, ...)
325320
{
326321
va_list args;
@@ -767,7 +762,8 @@ PHP_RINIT_FUNCTION(swoole)
767762
PHP_RSHUTDOWN_FUNCTION(swoole)
768763
{
769764
SWOOLE_G(req_status) = PHP_SWOOLE_RSHUTDOWN_BEGIN;
770-
execute_rshutdown_callback();
765+
766+
rshutdown_callbacks.execute();
771767

772768
swoole_server_rshutdown();
773769
swoole_async_coro_rshutdown();

0 commit comments

Comments
 (0)