Make sure we always return true from Main#on_timer.
[embrace.git] / bin / embrace
index 88a0b918d899796720e7a71ec6236b061dcd4cd5..dc4fafc4904c2eff5a7d374190193f7d80fd0622 100755 (executable)
@@ -17,6 +17,7 @@
 # along with this program; if not, write to the Free Software Foundation,
 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 
+require "evas"
 require "ecore"
 require "ecore_x"
 require "ecore_evas"
@@ -393,9 +394,7 @@ module Embrace
 
                private
                def on_timer
-                       return unless @server.nil?
-
-                       @server = IMAP::Session.new(@config)
+                       @server ||= IMAP::Session.new(@config)
 
                        true
                end