Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
93fd0ca2
Commit
93fd0ca2
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
explicitly catch InterruptedException
parent
f6e33e30
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/TcpExamples/TcpExample3Client.java
+3
-3
3 additions, 3 deletions
examples/src/TcpExamples/TcpExample3Client.java
with
3 additions
and
3 deletions
examples/src/TcpExamples/TcpExample3Client.java
+
3
−
3
View file @
93fd0ca2
...
...
@@ -26,8 +26,8 @@ public class TcpExample3Client {
* Program invocation, execution starts here
* @param args command-line arguments
*/
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
public
static
void
main
(
String
[]
args
)
{
// Local variables/fields
Socket
socket
=
null
;
InputStream
is
;
...
...
@@ -69,7 +69,7 @@ public class TcpExample3Client {
}
// end while(true) // infinite loops are dangerous, be sure to kill this process!
}
catch
(
IOException
e
)
catch
(
IOException
|
InterruptedException
e
)
{
System
.
err
.
println
(
"Problem with "
+
TcpExample3Client
.
class
.
getName
()
+
" networking:"
);
// describe what is happening
System
.
err
.
println
(
"Error: "
+
e
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment