Skip to content

Commit

Permalink
Ensure socket listener is closed on program exit
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorris committed Jan 18, 2025
1 parent 6cec3ae commit b191d28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ gboolean socket_init ( VikWindow *vw )
void socket_uninit (void)
{
if ( service ) {
g_socket_listener_close ( (GSocketListener*)service );
g_socket_service_stop ( service );
}
}
Expand Down

0 comments on commit b191d28

Please sign in to comment.