Browse Source

Only load image on non-LOADING state

v1.x
Tj Holowaychuk 14 years ago
parent
commit
f3d1f68597
  1. 10
      src/Image.cc

10
src/Image.cc

@ -197,10 +197,12 @@ EIO_AfterLoad(eio_req *req) {
void void
Image::load() { Image::load() {
Ref(); if (LOADING != state) {
state = LOADING; Ref();
eio_custom(EIO_Load, EIO_PRI_DEFAULT, EIO_AfterLoad, this); state = LOADING;
ev_ref(EV_DEFAULT_UC); eio_custom(EIO_Load, EIO_PRI_DEFAULT, EIO_AfterLoad, this);
ev_ref(EV_DEFAULT_UC);
}
} }
/* /*

Loading…
Cancel
Save