aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libglouglou.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglouglou/libglouglou.c')
-rw-r--r--libglouglou/libglouglou.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libglouglou/libglouglou.c b/libglouglou/libglouglou.c
index 999c1b6..743bc53 100644
--- a/libglouglou/libglouglou.c
+++ b/libglouglou/libglouglou.c
@@ -148,9 +148,7 @@ void cb_srv_receive(evutil_socket_t fd, short what, void *arg)
usr = user_add(srv, &remote);
if (srv->handle_conn)
srv->handle_conn(srv, usr);
- if (sendto(srv->sock, "", strlen(""), 0,
- (struct sockaddr *)&remote, remote_len) == -1)
- printf("srv: send failed: %s\n", strerror(errno));
+ user_send(usr, "", 0);
} else {
printf("srv: Incoming data from existing user !\n");
if (len == 0) {