diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-10-15 21:52:49 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-11-28 00:09:22 +0300 |
commit | 43770f58938d0b9345b53b5cf8f64f15e6b52799 (patch) | |
tree | 21eb33f8ae317f7594283a6c4d154285f9966863 | |
parent | ef0132e30b59e64ddd3221bb5532f081e52ba363 (diff) |
MUConnectionController: respect the user's TCP mode setting.
-rw-r--r-- | Source/Classes/MUConnectionController.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Classes/MUConnectionController.m b/Source/Classes/MUConnectionController.m index 9ff9838..4c43d5c 100644 --- a/Source/Classes/MUConnectionController.m +++ b/Source/Classes/MUConnectionController.m @@ -120,6 +120,7 @@ NSString *MUConnectionClosedNotification = @"MUConnectionClosedNotification"; - (void) establishConnection { _connection = [[MKConnection alloc] init]; [_connection setDelegate:self]; + [_connection setForceTCP:[[NSUserDefaults standardUserDefaults] boolForKey:@"NetworkForceTCP"]]; _serverModel = [[MKServerModel alloc] initWithConnection:_connection]; [_serverModel addDelegate:self]; |