diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2015-01-18 14:38:10 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2015-01-18 14:38:10 +0900 |
commit | 3baf68d2aac750e5879881fb2f3e6508248ad29c (patch) | |
tree | 21f415f21ba8213c76577ec5aa69222842b99449 /core/serialthread.rb | |
parent | 025631f5696e0b0290e0b755ddc7a2388c7329b4 (diff) | |
download | mikutter-3baf68d2aac750e5879881fb2f3e6508248ad29c.tar.gz |
イベントコールバック処理中に例外が発生した時、mikutterがクラッシュしない refs #746
Diffstat (limited to 'core/serialthread.rb')
-rw-r--r-- | core/serialthread.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/serialthread.rb b/core/serialthread.rb index b397a191..914643bc 100644 --- a/core/serialthread.rb +++ b/core/serialthread.rb @@ -34,7 +34,7 @@ class SerialThreadGroup alias new push # 処理中なら真 - def self.busy? + def busy? @thread_pool.any?{ |t| :run == t.status.to_sym } end # 全てのserial threadの実行をキャンセルする。終了時の処理用 @@ -82,4 +82,3 @@ end # SerialThreadGroup のインスタンス。 # 同時実行数は1固定 SerialThread = SerialThreadGroup.new - |