allow clustering without a socket

This commit is contained in:
roberto@debian32
2011-06-17 07:26:36 +02:00
parent 1e01f8be17
commit 15a582d046
+1 -1
View File
@@ -3382,7 +3382,7 @@ int uwsgi_cluster_add_me() {
ptrbuf += strlen(uwsgi.hostname);
if (uwsgi.sockets->name) {
if (uwsgi.sockets && uwsgi.sockets->name) {
ustrlen = strlen(key2);
*ptrbuf++ = (uint8_t) (ustrlen & 0xff);
*ptrbuf++ = (uint8_t) ((ustrlen >> 8) & 0xff);