mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 10:13:27 +01:00
[AltServer] Fixes dropping connection before client receives response
This commit is contained in:
@@ -292,7 +292,10 @@ private extension ConnectionManager
|
|||||||
self.send(response, to: connection) { (result) in
|
self.send(response, to: connection) { (result) in
|
||||||
print("Sent response to \(connection.endpoint) with result:", result)
|
print("Sent response to \(connection.endpoint) with result:", result)
|
||||||
|
|
||||||
self.disconnect(connection)
|
// Add short delay to prevent us from dropping connection too quickly.
|
||||||
|
DispatchQueue.global().asyncAfter(deadline: .now() + 1.0) {
|
||||||
|
self.disconnect(connection)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user