Skip to content

Commit

Permalink
fix: onConnect repetead
Browse files Browse the repository at this point in the history
  • Loading branch information
lschirripa committed Apr 28, 2022
1 parent ba38434 commit 6010c21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kernel/src/client/conexion_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern context_t g_context;
// ***** Private Functions *****
// ============================================================================================================

int on_connect(void *conexion, bool offline_mode)
int on_connect_dispatch(void *conexion, bool offline_mode)
{
if (offline_mode)
{
Expand Down Expand Up @@ -48,7 +48,7 @@ static int conexion_init(context_t *context)
// Test connection with cpu
context->conexion_dispatch = conexion_cliente_create(ip, port);

if (on_connect(&context->conexion_dispatch, false) EQ SUCCESS)
if (on_connect_dispatch(&context->conexion_dispatch, false) EQ SUCCESS)
{
// Test connection with cpu
LOG_DEBUG("Connected as CLIENT at %s:%s", ip, port);
Expand Down
4 changes: 2 additions & 2 deletions kernel/src/client/conexion_interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern context_t g_context;
// ***** Private Functions *****
// ============================================================================================================

int on_connect(void *conexion, bool offline_mode)
int on_connect_interrupt(void *conexion, bool offline_mode)
{
if (offline_mode)
{
Expand Down Expand Up @@ -48,7 +48,7 @@ static int conexion_init(context_t *context)
// Test connection with cpu
context->conexion_interrupt = conexion_cliente_create(ip, port);

if (on_connect(&context->conexion_interrupt, false) EQ SUCCESS)
if (on_connect_interrupt(&context->conexion_interrupt, false) EQ SUCCESS)
{

// Test connection with cpu
Expand Down

0 comments on commit 6010c21

Please sign in to comment.