Browse Source

Prevent crash when dmld is gone.

master
Jeroen Vreeken 4 years ago
parent
commit
d10119f4d2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      dml_host.c

+ 3
- 0
dml_host.c View File

@ -339,6 +339,9 @@ static uint16_t alloc_data_id(void)
int dml_host_connect(struct dml_host *host, struct dml_stream *ds)
{
if (!host->connection)
return -1;
uint16_t data_id = dml_stream_data_id_get(ds);
if (!data_id) {
data_id = alloc_data_id();


Loading…
Cancel
Save