Skip to content

Commit c055b58

Browse files
author
Stjepan Glavina
authored
Merge pull request #4 from Keruspe/parker
parking: ensure Reactor is initialized when creating a Parker
2 parents ed1d5d2 + aa99ae9 commit c055b58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parking.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ impl Parker {
5959
},
6060
};
6161
PARKER_COUNT.fetch_add(1, Ordering::SeqCst);
62+
// We use the Reactor in Drop, so ensure it's properly initialized since it's lazy
63+
Reactor::get();
6264
parker
6365
}
6466

0 commit comments

Comments
 (0)