summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BLua.cc b/src/BLua.cc
index 734f024..f70cf99 100644
--- a/src/BLua.cc
+++ b/src/BLua.cc
@@ -100,7 +100,7 @@ int Balau::LuaStatics::dumpvars(lua_State * __L) {
IO<Handle> h(L.recast<Balau::Handle>());
- if (h.isA<Buffer>()) {
+ if (!h->canEAgainOnWrite()) {
L.dumpvars(h, prefix);
} else {
IO<Handle> s(new Buffer());