Skip to content

Commit 4dcf117

Browse files
committed
remobe blocking locks in async tasks
otherwise, within an interrupt handler isn't possible to poll a network device.
1 parent 6e2a3fb commit 4dcf117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/executor/network.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async fn dhcpv4_run() {
182182
nic.dns_handle = None;
183183
}
184184
}
185-
};
185+
}
186186

187187
Poll::<()>::Pending
188188
})
@@ -229,7 +229,7 @@ pub(crate) async fn get_query_result(query: QueryHandle) -> io::Result<Vec<IpAdd
229229
ips.push(*x);
230230
}
231231

232-
Poll::Ready(Ok(ips))
232+
Poll::Ready(Ok(ips))
233233
}
234234
Err(GetQueryResultError::Pending) => {
235235
socket.register_query_waker(query, cx.waker());

0 commit comments

Comments
 (0)