module-netjack2: handle NULL socket

The socket might be NULL when it got destroyed due to an error.
This commit is contained in:
Wim Taymans 2023-06-09 20:48:51 +02:00
parent 59756a7c5d
commit 4bf526ddf4

View file

@ -328,6 +328,7 @@ static void sink_process(void *d, struct spa_io_position *position)
follower->peer.cycle++;
netjack2_send_data(&follower->peer, nframes, midi, n_midi, audio, n_audio);
if (follower->socket)
pw_loop_update_io(s->impl->data_loop->loop, follower->socket, SPA_IO_IN);
}