libsaria: Sometimes the server doesn't exist
I shouldn't try shutting down the web server if it hasn't been imported. This will only lead to an error...
This commit is contained in:
parent
0e5bd0d908
commit
23781e24a8
|
@ -8,6 +8,7 @@ import path
|
||||||
import sources
|
import sources
|
||||||
import controls
|
import controls
|
||||||
|
|
||||||
|
server = None
|
||||||
if version.__dev__ == True:
|
if version.__dev__ == True:
|
||||||
import server
|
import server
|
||||||
|
|
||||||
|
@ -26,7 +27,8 @@ def startup():
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
audio.shutdown()
|
audio.shutdown()
|
||||||
server.shutdown()
|
if server != None:
|
||||||
|
server.shutdown()
|
||||||
## import plugin
|
## import plugin
|
||||||
## plugin.quit()
|
## plugin.quit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue