Skip to content

Commit

Permalink
Fix: potential thread leak (ss220club#337)
Browse files Browse the repository at this point in the history
Я забыл, что нужно закрывать хттп клиент при отключении сервера
:fortune:
  • Loading branch information
Furrior authored Jul 11, 2024
1 parent 8dd4150 commit 488d7b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modular_bandastation/tts/code/SSHttp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SUBSYSTEM_DEF(http)
log_data += "END ASYNC REQUEST (ID: [req.id])"

// Write the log data

logger.Log(LOG_CATEGORY_DEBUG, log_data.Join("\n"))

/**
Expand All @@ -84,3 +84,7 @@ SUBSYSTEM_DEF(http)
/datum/http_request
/// Callback for executing after async requests. Will be called with an argument of [/datum/http_response] as first argument
var/datum/callback/cb

/world/Del()
rustgss220_close_async_http_client()
. = ..()

0 comments on commit 488d7b4

Please sign in to comment.