mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-08 11:57:44 +08:00
Don't need to create a new context (#2651)
Co-authored-by: heran yang <heran.yang@seafile.com>
This commit is contained in:
parent
efefe27eb5
commit
4d8779213e
@ -825,13 +825,6 @@ notification_worker (void *vdata)
|
||||
g_usleep (RECONNECT_INTERVAL * G_USEC_PER_SEC);
|
||||
n = 0;
|
||||
server->status = STATUS_DISCONNECTED;
|
||||
|
||||
lws_context_destroy(server->context);
|
||||
server->context = NULL;
|
||||
server->context = lws_context_new (server->use_ssl);
|
||||
if (!server->context)
|
||||
break;
|
||||
i->context = server->context;
|
||||
}
|
||||
|
||||
seaf_message ("Notification worker for server %s exiting.\n", server->server_url);
|
||||
|
Loading…
Reference in New Issue
Block a user