diff --git a/Tranga/API/Server.cs b/Tranga/API/Server.cs index ae913ed..8d19bc4 100644 --- a/Tranga/API/Server.cs +++ b/Tranga/API/Server.cs @@ -82,12 +82,11 @@ public class Server response.OutputStream.Write(content is not null ? Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(content)) : Array.Empty()); + response.OutputStream.Close(); } catch (HttpListenerException) { } - response.OutputStream.Close(); - } } \ No newline at end of file