Merge pull request #41 from samhug/stackoverflow

Fix stack overflow on windows
This commit is contained in:
Aram 🍐 2022-08-20 09:17:14 -04:00 committed by GitHub
commit 85195d8aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ pub async fn start_tunnels(config: Config, bus: Bus) -> anyhow::Result<()> {
{
// Start consumption task for WireGuard
let wg = wg.clone();
tokio::spawn(async move { wg.consume_task().await });
tokio::spawn(Box::pin(async move { wg.consume_task().await }));
}
{