2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

session: workaround for stream.close interrupted

This commit is contained in:
mwojcik 2024-02-27 16:52:36 +08:00 committed by Sébastien Bourdeauducq
parent 450fe91e93
commit 42d3c3b4b2

View File

@ -976,7 +976,13 @@ pub fn thread(io: Io, aux_mutex: &Mutex,
drtio::clear_buffers(&io, &aux_mutex);
}
}
stream.close().expect("session: close socket");
loop {
match stream.close() {
Ok(_) => break,
Err(SchedError::Interrupted) => (),
Err(e) => panic!("session: close socket: {:?}", e)
};
}
});
}