mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
formatting
This commit is contained in:
parent
ddf6bfa4cd
commit
41108583c7
@ -275,7 +275,6 @@ pack_default_value(DCPackData &pack_data, bool &pack_error) const {
|
|||||||
packer.pop();
|
packer.pop();
|
||||||
if (!packer.end_pack()) {
|
if (!packer.end_pack()) {
|
||||||
pack_error = true;
|
pack_error = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
pack_data.append_data(packer.get_data(), packer.get_length());
|
pack_data.append_data(packer.get_data(), packer.get_length());
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
|
|||||||
components = moduleName.split('.')
|
components = moduleName.split('.')
|
||||||
dcImports[components[0]] = module
|
dcImports[components[0]] = module
|
||||||
|
|
||||||
def connect(self, serverList,
|
def connect(self, serverList,
|
||||||
successCallback = None, successArgs = [],
|
successCallback = None, successArgs = [],
|
||||||
failureCallback = None, failureArgs = []):
|
failureCallback = None, failureArgs = []):
|
||||||
"""
|
"""
|
||||||
@ -223,10 +223,10 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
|
|||||||
# run out of servers).
|
# run out of servers).
|
||||||
|
|
||||||
ch = self.http.makeChannel(0)
|
ch = self.http.makeChannel(0)
|
||||||
self.httpConnectCallback(ch, serverList, 0,
|
self.httpConnectCallback(
|
||||||
successCallback, successArgs,
|
ch, serverList, 0,
|
||||||
failureCallback, failureArgs)
|
successCallback, successArgs,
|
||||||
|
failureCallback, failureArgs)
|
||||||
else:
|
else:
|
||||||
# Try each of the servers in turn.
|
# Try each of the servers in turn.
|
||||||
for url in serverList:
|
for url in serverList:
|
||||||
@ -274,7 +274,6 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
|
|||||||
self.startReaderPollTask()
|
self.startReaderPollTask()
|
||||||
if successCallback:
|
if successCallback:
|
||||||
successCallback(*successArgs)
|
successCallback(*successArgs)
|
||||||
|
|
||||||
elif serverIndex < len(serverList):
|
elif serverIndex < len(serverList):
|
||||||
# No connection yet, but keep trying.
|
# No connection yet, but keep trying.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user