diff --git a/broadcast/broadcast.c b/broadcast/broadcast.c index e6452af..c8d76d7 100644 --- a/broadcast/broadcast.c +++ b/broadcast/broadcast.c @@ -320,6 +320,7 @@ int main(int argc, char **argv) { M_LOG(MODULE_NAME, "Client %d is already subscript to this channel", request.header.client_id); } + else { // store user name bc_client = NULL; @@ -507,4 +508,4 @@ int main(int argc, char **argv) } (void)close(fd); return 0; -} \ No newline at end of file +}