Skip to content

Commit 44b45ec

Browse files
fix!: Avoids closing server on single executions
1 parent 919da33 commit 44b45ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/GraphQLWS/Server.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public actor Server<
127127
// TODO: Should we send the `ka` message?
128128
}
129129

130-
private func onStart(_ startRequest: StartRequest, _ messenger: Messenger) async throws {
130+
private func onStart(_ startRequest: StartRequest, _: Messenger) async throws {
131131
guard initialized, let initResult else {
132132
try await error(.notInitialized())
133133
return
@@ -172,7 +172,6 @@ public actor Server<
172172
} catch {
173173
try await sendError(error, id: id)
174174
}
175-
try await messenger.close()
176175
}
177176
}
178177

0 commit comments

Comments
 (0)