Skip to content

Commit 974614c

Browse files
committed
Can start multiple times
1 parent 89f9a43 commit 974614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Socket/PollingSocketPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ final actor PollingSocketPool: AsyncSocketPool {
8686
}
8787

8888
func run() async throws {
89-
guard state == .ready else { throw Error("Not Ready") }
89+
guard state != .running else { throw Error("Not Ready") }
9090
state = .running
9191

9292
defer {

0 commit comments

Comments
 (0)