This commit is contained in:
Max Goedjen 2025-08-26 00:14:28 -07:00
parent f9d8818879
commit 07bf521414
No known key found for this signature in database

View File

@ -22,6 +22,7 @@ public struct Session: Sendable {
guard !data.isEmpty else {
logger.debug("Socket controller received empty data, ending continuation.")
continuation.finish()
try fileHandle.close()
return
}
continuation.yield(data)
@ -37,6 +38,7 @@ public struct Session: Sendable {
public func close() throws {
logger.debug("Session closed.")
continuation.finish()
try fileHandle.close()
}