Explorar o código

Fixed: "pod spec lint".

Damian Kołakowski %!s(int64=10) %!d(string=hai) anos
pai
achega
bcaba6f90b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      Sources/HttpServerIO.swift

+ 5 - 1
Sources/HttpServerIO.swift

@@ -80,7 +80,11 @@ public class HttpServerIO {
     private struct InnerWriteContext: HttpResponseBodyWriter {
         let socket: Socket
         func write(data: [UInt8]) {
-            let _ = try? socket.writeUInt8(data)
+            do {
+                try socket.writeUInt8(data)
+            } catch {
+                print("\(error)")
+            }
         }
     }