mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-08-31 01:20:57 +00:00
Working
This commit is contained in:
parent
f9d8818879
commit
07bf521414
@ -22,6 +22,7 @@ public struct Session: Sendable {
|
|||||||
guard !data.isEmpty else {
|
guard !data.isEmpty else {
|
||||||
logger.debug("Socket controller received empty data, ending continuation.")
|
logger.debug("Socket controller received empty data, ending continuation.")
|
||||||
continuation.finish()
|
continuation.finish()
|
||||||
|
try fileHandle.close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
continuation.yield(data)
|
continuation.yield(data)
|
||||||
@ -37,6 +38,7 @@ public struct Session: Sendable {
|
|||||||
|
|
||||||
public func close() throws {
|
public func close() throws {
|
||||||
logger.debug("Session closed.")
|
logger.debug("Session closed.")
|
||||||
|
continuation.finish()
|
||||||
try fileHandle.close()
|
try fileHandle.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user