Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix win32 uv loop breakage
  • Loading branch information
japj authored and ry committed Aug 31, 2011
1 parent 21cc4c4 commit f013f15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_stdio_win32.cc
Expand Up @@ -470,7 +470,7 @@ static void tty_watcher_start() {
assert(tty_watcher_initialized);
if (!tty_watcher_active) {
tty_watcher_active = true;
uv_ref();
uv_ref(uv_default_loop());
tty_watcher_arm();
}
}
Expand All @@ -479,7 +479,7 @@ static void tty_watcher_start() {
static void tty_watcher_stop() {
if (tty_watcher_active) {
tty_watcher_active = false;
uv_unref();
uv_unref(uv_default_loop());
tty_watcher_disarm();
}
}
Expand Down Expand Up @@ -661,8 +661,8 @@ static Handle<Value> StopTTYWatcher(const Arguments& args) {
void Stdio::Initialize(v8::Handle<v8::Object> target) {
init_scancode_table();

uv_async_init(&tty_avail_notifier, tty_poll);
uv_unref();
uv_async_init(uv_default_loop(), &tty_avail_notifier, tty_poll);
uv_unref(uv_default_loop());

/* Set stdio streams to binary mode. */
_setmode(_fileno(stdin), _O_BINARY);
Expand Down

0 comments on commit f013f15

Please sign in to comment.