mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-08-30 17:10:56 +00:00
Working
This commit is contained in:
parent
f9d8818879
commit
07bf521414
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user