()
| 128 | |
| 129 | |
| 130 | def _saveConfig(): |
| 131 | global config |
| 132 | cfg1 = config.copy() |
| 133 | if 'peerId' in cfg1.keys(): |
| 134 | del cfg1["peerId"] |
| 135 | with open(CONFIG_FILE, 'w') as outfile: |
| 136 | yaml.dump(cfg1, outfile) |
| 137 | |
| 138 | def _setPnPServiceConnectionHandlers(peer=None): |
| 139 | assert peer |