Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/HttpServerIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public class HttpServerIO {
self.state = .starting
let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
self.state = .running
DispatchQueue.global(qos: priority).async { [weak self] in
guard let strongSelf = self else { return }
guard strongSelf.operating else { return }
Expand All @@ -93,7 +94,6 @@ public class HttpServerIO {
}
strongSelf.stop()
}
self.state = .running
}

public func stop() {
Expand Down