]> git.meshlink.io Git - meshlink/blobdiff - src/meta.c
Drop libevent and use our own event handling again.
[meshlink] / src / meta.c
index 84fb196c4c87d0057da3f797b8111d6a8bac9917..1244bfd0e55478ace2a22028541c6fd30a544b63 100644 (file)
@@ -39,7 +39,7 @@ bool send_meta_sptps(void *handle, uint8_t type, const char *buffer, size_t leng
        }
 
        buffer_add(&c->outbuf, buffer, length);
-       event_add(&c->outevent, NULL);
+       io_set(&c->io, IO_READ | IO_WRITE);
 
        return true;
 }
@@ -65,12 +65,11 @@ bool send_meta(connection_t *c, const char *buffer, int length) {
                                        c->name, c->hostname);
                        return false;
                }
-
        } else {
                buffer_add(&c->outbuf, buffer, length);
        }
 
-       event_add(&c->outevent, NULL);
+       io_set(&c->io, IO_READ | IO_WRITE);
 
        return true;
 }