Skip to content

Commit

Permalink
Fixed main thread exiting before ask
Browse files Browse the repository at this point in the history
Fixed #1

Changed descriptions of some functions.
  • Loading branch information
dario-santos committed Jun 11, 2019
1 parent b86b440 commit 8a384ed
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Project/Server/fila.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Fila *fila_find_node(Fila *L, int id);
* args:
* L: Fila list
*
* return: Fila max int id
* return: Fila max id
*/
int fila_max_id(Fila *L);

Expand Down
2 changes: 1 addition & 1 deletion Project/Server/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Msg *msg_remove_node(Msg *L, Msg *del);
* args:
* L: Msg list
*
* return: Msg max int id
* return: Msg max id
*/
int msg_max_id(Msg *L);

Expand Down
12 changes: 6 additions & 6 deletions Project/Server/source_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ void server_kill()
do
{
scanf("%c", &c);

if (shutdown_main_thread() != 1)
{
printf("Server: Não pode desligar o servidor enquanto existem clientes ligados\n");
c = 'a';
}
if (c == 'q')
if (shutdown_main_thread() != 1)
{
printf("Server: Não pode desligar o servidor enquanto existem clientes ligados\n");
c = 'a';
}

} while (c != 'q');
}
2 changes: 1 addition & 1 deletion Tests/Fila/fila.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Fila *fila_find_node(Fila *L, int id);
* args:
* L: Fila list
*
* return: Fila max int id
* return: Fila max id
*/
int fila_max_id(Fila *L);

Expand Down
2 changes: 1 addition & 1 deletion Tests/Fila/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Msg *msg_remove_node(Msg *L, Msg *del);
* args:
* L: Msg list
*
* return: Msg max int id
* return: Msg max id
*/
int msg_max_id(Msg *L);

Expand Down
2 changes: 1 addition & 1 deletion Tests/Msg/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Msg *msg_remove_node(Msg *L, Msg *del);
* args:
* L: Msg list
*
* return: Msg max int id
* return: Msg max id
*/
int msg_max_id(Msg *L);

Expand Down

0 comments on commit 8a384ed

Please sign in to comment.