diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-12-19 10:34:29 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-12-19 10:34:29 +0900 |
commit | c3f1dff3d275ec220e5d804db5569a25b06ff3cd (patch) | |
tree | 37627c151081cee17e0746a02ea4f5257e521bac /core/lib/retriever/mixin/photo_mixin.rb | |
parent | 1480cf729f1cc48befd141b05834673d1cdbc0b7 (diff) | |
download | mikutter-c3f1dff3d275ec220e5d804db5569a25b06ff3cd.tar.gz |
Reserverのタイムアウト時に作成されるThreadのclassを指定する引数を追加 refs #941
Diffstat (limited to 'core/lib/retriever/mixin/photo_mixin.rb')
-rw-r--r-- | core/lib/retriever/mixin/photo_mixin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/retriever/mixin/photo_mixin.rb b/core/lib/retriever/mixin/photo_mixin.rb index 8ad67c16..17b1b60a 100644 --- a/core/lib/retriever/mixin/photo_mixin.rb +++ b/core/lib/retriever/mixin/photo_mixin.rb @@ -186,7 +186,7 @@ module Retriever::Model::PhotoMixin # 既に動いているタイマーがあればそれをキャンセルする。 def set_forget_timer @forget.cancel if @forget - @forget = Reserver.new(forget_time){ forget! } + @forget = Reserver.new(forget_time, thread: SerialThread){ forget! } end # 覚えておりません |