Recognize the eof packet also in the udp receiver.
[paraslash.git] / client.c
index fdd07b247e617c86d3f38ff059d8bb8672356a9c..2123421e71b099bb632b99c563aaafd5b0c70aaf 100644 (file)
--- a/client.c
+++ b/client.c
@@ -80,10 +80,9 @@ int main(int argc, char *argv[])
 
        s.default_timeout.tv_sec = 1;
        s.default_timeout.tv_usec = 0;
-       ret = client_open(argc, argv, &ct);
+       ret = client_open(argc, argv, &ct, &client_loglevel);
        if (ret < 0) /* can not use PARA_LOG here because ct is NULL */
                exit(EXIT_FAILURE);
-       client_loglevel = get_loglevel_by_name(ct->conf.loglevel_arg);
        register_task(&svt);
        ret = schedule(&s);
        if (ret < 0)