Index: /branches/ag_client_motionProGlobal_ios/motionpro_ios_mac/MotionProPlus/Controllers/ResourcesViewController.m
===================================================================
--- /branches/ag_client_motionProGlobal_ios/motionpro_ios_mac/MotionProPlus/Controllers/ResourcesViewController.m	(revision 8416)
+++ /branches/ag_client_motionProGlobal_ios/motionpro_ios_mac/MotionProPlus/Controllers/ResourcesViewController.m	(working copy)
@@ -582,7 +582,10 @@
     if (!isSilent) {
         __weak typeof(self) weakSelf = self;
         [self.view makeToastActivity:CSToastPositionCenter];
-        dispatch_async(dispatch_get_global_queue(0, 0), ^{
+        // solve: Bug 368 - Throughwave: log off behavior with MP global on iOS17
+        //dispatch_async(dispatch_get_global_queue(0, 0), ^{
+        dispatch_queue_t queue = dispatch_get_global_queue(0, 0);
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), queue, ^{
             NSInteger ret = [[AAAManager sharedInstance] stopL3VPNDirectly];
             if (ret != ERR_SUCCESS) {
                 ANError(@"Logout failed with error code: %zi.", ret);
