Skip to content

Commit

Permalink
fix issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillsaidov committed Jul 2, 2024
1 parent df1d339 commit 2b6f5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vita/network/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ vt_socket_t vt_socket_startup_server(const enum VitaSocketType type, const int32
}

// listen
if (type == SOCK_STREAM && listen(sock_fd , backlog) < 0) {
if (type == VT_SOCKET_TYPE_TCP && listen(sock_fd , backlog) < 0) {
VT_DEBUG_PRINTF("%s: Error listening for connections!\n", vt_status_to_str(VT_STATUS_OPERATION_FAILURE));
return VT_SOCKET_STATUS_ERROR_LISTEN;
}
Expand Down

0 comments on commit 2b6f5e4

Please sign in to comment.