forked from M-Labs/artiq
session: workaround for stream.close interrupted
This commit is contained in:
parent
450fe91e93
commit
42d3c3b4b2
|
@ -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)
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue