mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
Fix bug: when close, not quit loop
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
+3
-4
@@ -201,14 +201,13 @@ static void uwsc_onmessage(struct uwsc_client *cl, char *msg, uint64_t len, enum
|
||||
|
||||
static void uwsc_onerror(struct uwsc_client *cl)
|
||||
{
|
||||
printf("onerror:%d\n", cl->error);
|
||||
uwsc_log_err("onerror:%d", cl->error);
|
||||
}
|
||||
|
||||
static void uwsc_onclose(struct uwsc_client *cl)
|
||||
{
|
||||
printf("onclose\n");
|
||||
|
||||
uloop_done();
|
||||
uwsc_log_debug("onclose");
|
||||
uloop_end();
|
||||
}
|
||||
|
||||
static void usage(const char *prog)
|
||||
|
||||
Reference in New Issue
Block a user