Skip to content

Commit 59786d5

Browse files
committed
Prevent drop() stop_handler()
1 parent 7ac8ca0 commit 59786d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lua_actor"
3-
version = "0.1.17"
3+
version = "0.1.18"
44
license = "MIT"
55
authors = ["JunYi JohnTeee Lee <johnteee@gmail.com>"]
66
include = ["src/**/*.rs", "Cargo.toml"]

src/actor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Default for Actor {
2525

2626
impl Drop for Actor {
2727
fn drop(&mut self) {
28-
self.stop_handler();
28+
// self.stop_handler();
2929
}
3030
}
3131

@@ -51,7 +51,7 @@ impl Actor {
5151
self.lua = lua;
5252
}
5353
#[inline]
54-
fn stop_handler(&self) {
54+
pub fn stop_handler(&self) {
5555
if let Some(ref _h) = self.handler {
5656
_h.lock().unwrap().stop()
5757
}

0 commit comments

Comments
 (0)