Skip to content

Commit

Permalink
Fixed not closing socket after reading
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkhanAlikhanov committed Jul 14, 2017
1 parent 781b1c9 commit 334b5e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Requester.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ open class Requester {
try wait(socket)

self.response = try ResponseParser.parse(socket: socket)
socket.close()
} catch {
self.error = error
}
Expand Down

0 comments on commit 334b5e9

Please sign in to comment.