fixup! fixup! stream-ws: Inherit stream-tcp
parent
6869eb42e6
commit
e65660aea0
|
@ -337,7 +337,7 @@ struct stream* stream_new(int fd, stream_event_fn on_event, void* userdata)
|
||||||
if (!self)
|
if (!self)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!stream_tcp_init(self, fd, on_event, userdata)) {
|
if (stream_tcp_init(self, fd, on_event, userdata) < 0) {
|
||||||
free(self);
|
free(self);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue