Skip to content

Commit

Permalink
refactor(console): move connect after parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasanchez committed Apr 18, 2022
1 parent 1eb499d commit 932de1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/src/connection/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ int on_init(void)

LOG_DEBUG("Modulo inicializado!");
this.status = RUNNING;
return conexion_init();
return EXIT_SUCCESS;
}

int on_before_exit(void)
Expand Down Expand Up @@ -183,6 +183,8 @@ int on_client_run(char *instructions_file_name, int process_size)

if (yynerrs == 0 && yylexerrs == 0)
{
conexion_init();

while (this.status EQ RUNNING)
{
while (input_file_commands->elements_count > 0)
Expand Down

0 comments on commit 932de1e

Please sign in to comment.