mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Merge branch 'fix-api' into develop
This commit is contained in:
commit
cc78d9cc9b
2 changed files with 4 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -102,7 +102,7 @@ SRCDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|||
VPATH = $(SRCDIR)
|
||||
|
||||
# Add git revision and build variant defines
|
||||
VERSION := $(shell git describe --tags --abbrev=0 --match v*)
|
||||
VERSION := $(shell git describe --tags --abbrev=0 --match 'v*')
|
||||
VERSION_NUM := $(shell VERSION=$(VERSION); echo $${VERSION:1})
|
||||
|
||||
ifdef CI
|
||||
|
|
|
@ -150,6 +150,9 @@ int api_http_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, void
|
|||
break;
|
||||
|
||||
case LWS_CALLBACK_CLOSED_HTTP:
|
||||
if (!s)
|
||||
return -1;
|
||||
|
||||
ret = api_session_destroy(s);
|
||||
if (ret)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue