summaryrefslogtreecommitdiffstats
path: root/src/task.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 23:12:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 23:12:56 +0100
commit6c2649ab27f96dcc40a1f01a36a07d1603f39c51 (patch)
tree32e5ddf8ea76619da45cc27578673a15d7399910 /src/task.c
parent5e70122b5481c878aa0773281304c4d68062cf7d (diff)
downloadfastd-6c2649ab27f96dcc40a1f01a36a07d1603f39c51.tar
fastd-6c2649ab27f96dcc40a1f01a36a07d1603f39c51.zip
Add timeout to task queue
Diffstat (limited to 'src/task.c')
-rw-r--r--src/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task.c b/src/task.c
index f3ccfd7..0367cb4 100644
--- a/src/task.c
+++ b/src/task.c
@@ -41,7 +41,7 @@ static void fastd_task_put_send_type(fastd_context *ctx, const fastd_peer *peer,
task->packet_type = packet_type;
task->buffer = buffer;
- fastd_queue_put(&ctx->task_queue, task);
+ fastd_queue_put(&ctx->task_queue, task, 0);
}
void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) {
@@ -59,5 +59,5 @@ void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, fast
task->peer = peer;
task->buffer = buffer;
- fastd_queue_put(&ctx->task_queue, task);
+ fastd_queue_put(&ctx->task_queue, task, 0);
}