Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyrotication committed Jun 24, 2019
1 parent ea1c5cc commit c957b78
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Project/Server/Forms/Main.vb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ Public Class Main
Catch ex As Exception
End Try

#If DEBUG Then
Try
AddHandler S_Client.Read, AddressOf S_Messages.Read
S = New S_TcpListener
Dim T As New Threading.Thread(AddressOf S.Start)
T.Start(8989)
S_Settings.EncryptionKey = "NYANCAT"
Catch ex As Exception
MsgBox(ex.Message)
End
End Try
#Else

Try
AddHandler S_Client.Read, AddressOf S_Messages.Read
For Each x In S_Settings.PORT.ToList
Expand All @@ -88,6 +101,7 @@ Public Class Main
MsgBox(ex.Message)
End
End Try
#End If

Try
Main_Rightclick.Renderer = New MyRenderer()
Expand Down

0 comments on commit c957b78

Please sign in to comment.