diff options
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 0f95f48c7..41f2958a2 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -682,8 +682,7 @@ do_transmit (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
682 | } else { | 682 | } else { |
683 | //nothing to send at the moment | 683 | //nothing to send at the moment |
684 | plugin->server_read_task = | 684 | plugin->server_read_task = |
685 | GNUNET_SCHEDULER_add_delayed (plugin->env->sched, | 685 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining(nextsend), |
686 | GNUNET_TIME_absolute_get_remaining(nextsend), | ||
687 | &do_transmit, plugin); | 686 | &do_transmit, plugin); |
688 | 687 | ||
689 | } | 688 | } |
@@ -804,8 +803,7 @@ do_transmit (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
804 | } | 803 | } |
805 | 804 | ||
806 | //plugin->server_read_task = | 805 | //plugin->server_read_task = |
807 | //GNUNET_SCHEDULER_add_read_file (plugin->env->sched, | 806 | //GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, |
808 | // GNUNET_TIME_UNIT_FOREVER_REL, | ||
809 | // plugin->server_stdout_handle, &wlan_plugin_helper_read, plugin); | 807 | // plugin->server_stdout_handle, &wlan_plugin_helper_read, plugin); |
810 | 808 | ||
811 | } | 809 | } |
@@ -837,8 +835,7 @@ process_pending_messages (struct Plugin * plugin) | |||
837 | 835 | ||
838 | // GNUNET_TIME_UNIT_FOREVER_REL is needed to clean up old msg | 836 | // GNUNET_TIME_UNIT_FOREVER_REL is needed to clean up old msg |
839 | plugin->server_write_task | 837 | plugin->server_write_task |
840 | = GNUNET_SCHEDULER_add_write_file(plugin->env->sched, | 838 | = GNUNET_SCHEDULER_add_write_file(GNUNET_TIME_UNIT_FOREVER_REL, |
841 | GNUNET_TIME_UNIT_FOREVER_REL, | ||
842 | plugin->server_stdin_handle, | 839 | plugin->server_stdin_handle, |
843 | &do_transmit, | 840 | &do_transmit, |
844 | plugin); | 841 | plugin); |
@@ -1264,8 +1261,7 @@ wlan_transport_start_wlan_helper (struct Plugin *plugin) | |||
1264 | plugin->server_stdin_handle = GNUNET_DISK_pipe_handle(plugin->server_stdin, GNUNET_DISK_PIPE_END_WRITE); | 1261 | plugin->server_stdin_handle = GNUNET_DISK_pipe_handle(plugin->server_stdin, GNUNET_DISK_PIPE_END_WRITE); |
1265 | 1262 | ||
1266 | plugin->server_read_task = | 1263 | plugin->server_read_task = |
1267 | GNUNET_SCHEDULER_add_read_file (plugin->env->sched, | 1264 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, |
1268 | GNUNET_TIME_UNIT_FOREVER_REL, | ||
1269 | plugin->server_stdout_handle, &wlan_plugin_helper_read, plugin); | 1265 | plugin->server_stdout_handle, &wlan_plugin_helper_read, plugin); |
1270 | return GNUNET_YES; | 1266 | return GNUNET_YES; |
1271 | } | 1267 | } |
@@ -1288,7 +1284,7 @@ gnunet_plugin_transport_wlan_init (void *cls) | |||
1288 | 1284 | ||
1289 | GNUNET_assert(cls !=NULL); | 1285 | GNUNET_assert(cls !=NULL); |
1290 | 1286 | ||
1291 | service = GNUNET_SERVICE_start ("transport-wlan", env->sched, env->cfg); | 1287 | service = GNUNET_SERVICE_start ("transport-wlan", env->cfg); |
1292 | if (service == NULL){ | 1288 | if (service == NULL){ |
1293 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1289 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1294 | _("Failed to start service for `%s' transport plugin.\n"), | 1290 | _("Failed to start service for `%s' transport plugin.\n"), |