lib/knj/win_tightvnc.rb in knjrbfw-0.0.41 vs lib/knj/win_tightvnc.rb in knjrbfw-0.0.42
- old
+ new
@@ -99,20 +99,20 @@
def open?
begin
@process.GetOwner
return true
- rescue Exception => e
+ rescue => e
return false
end
end
def close
return nil if !@process
begin
@process.Terminate
- rescue Exception => e
+ rescue => e
if e.class.to_s == "WIN32OLERuntimeError" and e.message.index("Terminate") != nil
#do nothing.
else
raise e
end
\ No newline at end of file