X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fcore.py;h=d7a61369a38971634174483fb156a5eb2b85c37f;hb=24993cd99b847733894f57fd004ed52b5390244a;hp=bf098bbb58ececa7d2442e0927d1009a7ef08e8b;hpb=0236b2bf31b893ab0b53374c0d3a0bc0ab9deda3;p=mpd-sima.git diff --git a/sima/core.py b/sima/core.py index bf098bb..d7a6136 100644 --- a/sima/core.py +++ b/sima/core.py @@ -1,11 +1,25 @@ # -*- coding: utf-8 -*- +# Copyright (c) 2009, 2010, 2011, 2013, 2014 Jack Kaliko +# +# This file is part of sima +# +# sima is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# sima is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with sima. If not, see . +# +# """Core Object dealing with plugins and player client """ -__version__ = '0.12.0pr1' -__author__ = 'kaliko jack' -__url__ = 'git://git.kaliko.me/sima.git' - import sys import time @@ -37,6 +51,7 @@ class Sima(Daemon): except (PlayerError, PlayerUnHandledError) as err: self.log.error('Fails to connect player: {}'.format(err)) self.shutdown() + sys.exit(1) self.short_history = deque(maxlen=60) def __get_player(self):