Skip to content

Commit

Permalink
Remove unnecessary unref
Browse files Browse the repository at this point in the history
  • Loading branch information
noppoMan committed May 8, 2016
1 parent 997a125 commit 004561e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Slimane+Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ extension Slimane {
}

private func closeStream(_ request: Request, _ stream: Skelton.HTTPStream){
if request.isKeepAlive {
stream.unref()
} else {
do { try stream.close() } catch { }
if !request.isKeepAlive {
do {
try stream.close()
} catch { }
}
}

0 comments on commit 004561e

Please sign in to comment.