Don't need to create a new context (#2651)

Co-authored-by: heran yang <heran.yang@seafile.com>
This commit is contained in:
feiniks 2023-03-01 12:11:54 +08:00 committed by GitHub
parent efefe27eb5
commit 4d8779213e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);