summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index cdd9713a20..64c97cf0dc 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -486,7 +486,10 @@ void stream_set_interrupt_callback(int (*cb)(int)) {
}
int stream_check_interrupt(int time) {
- if(!stream_check_interrupt_cb) return 0;
+ if(!stream_check_interrupt_cb) {
+ usec_sleep(time * 1000);
+ return 0;
+ }
return stream_check_interrupt_cb(time);
}