connect as soon as speech-dispatcher is available

This commit is contained in:
chrys 2017-01-16 23:48:32 +01:00
parent 65b7b8d81a
commit 31b60f5a39

View File

@ -27,12 +27,12 @@ class driver():
def shutdown(self): def shutdown(self):
if not self._isInitialized: if not self._isInitialized:
return return
self._isInitialized = False
self.cancel() self.cancel()
try: try:
self._sd.close() self._sd.close()
except: except:
pass pass
self._isInitialized = False
def speak(self,text, queueable=True): def speak(self,text, queueable=True):
if not self._isInitialized: if not self._isInitialized: