mirror of
https://github.com/sogou/workflow.git
synced 2026-10-22 07:06:30 +08:00
websocket : update handle_terminate() and client.deinit() codes
This commit is contained in:
@@ -44,6 +44,11 @@ void process(WFWebSocketTask *task)
|
||||
}
|
||||
}
|
||||
|
||||
void closed()
|
||||
{
|
||||
fprintf(stderr, "connection is close by system\n");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
@@ -54,7 +59,7 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
WebSocketClient client(process);
|
||||
WebSocketClient client(process, closed);
|
||||
client.init(argv[1]);
|
||||
|
||||
WFFacilities::WaitGroup wg(1);
|
||||
|
||||
Reference in New Issue
Block a user